Bug 990213

Summary: startx contains empty line before the #! line
Product: [Fedora] Fedora Reporter: Göran Uddeborg <goeran>
Component: xorg-x11-xinitAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 19CC: redhat, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: xorg-x11-xinit-1.3.4-1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-14 03:26:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Göran Uddeborg 2013-07-30 15:04:56 UTC
Description of problem:
The file /usr/bin/startx contains a number of empty lines before the so called shebang, the line starting with #!.  This makes execve() fail on this command, the #! has to be on the first line.

Version-Release number of selected component (if applicable):

Additional info:
When run from a shell, this is pretty harmless.  The shell will start a bash on its own when the execve() fails.  But if one for example use /usr/bin/startx as the ExecStart command in a systemd.service file, it will not be as forgiving as the shell.  Rather it will report

  Failed at step EXEC spawning /usr/bin/startx: Exec format error

And the service will fail.

(In case you wonder: we use startx to bring up mythfrontend in a MythTV box.)

Comment 1 Hans de Goede 2014-09-11 14:38:29 UTC
*** Bug 1072051 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Update System 2014-09-12 07:12:55 UTC
xorg-x11-xinit-1.3.4-1.fc21 has been submitted as an update for Fedora 21.

Comment 3 Fedora Update System 2014-09-12 07:14:26 UTC
xorg-x11-xinit-1.3.4-1.fc20 has been submitted as an update for Fedora 20.

Comment 4 Fedora Update System 2014-09-12 17:47:16 UTC
Package xorg-x11-xinit-1.3.4-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xorg-x11-xinit-1.3.4-1.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-09-14 03:26:39 UTC
xorg-x11-xinit-1.3.4-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2014-09-23 05:01:45 UTC
xorg-x11-xinit-1.3.4-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.