diff options
author | Robert Macomber <robert.macomber@bigfishgames.com> | 2009-01-16 01:27:50 +0100 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2009-01-16 01:55:08 +0100 |
commit | 57f917f8934d441ebb6501c4691a2b59fa217f3f (patch) | |
tree | c5d22efa5f9563b0c9109c2a134d535404ac20bc /.gitignore | |
parent | 7a5086259ca39cc4de6abcda3a3dc5d6c6b380b0 (diff) |
startx: fix misparsing of initial client and server arguments which begin with / or ./
If you invoke startx with a client whose initial command-line arguments
begin with / or ./, it uses the last such argument as the base command
for the client. E.g.:
startx /usr/bin/xterm /usr/bin/mutt
will use /usr/bin/mutt as the client to run instead of /usr/bin/xterm.
This is because of the way in which startx parses its arguments. It's a
loop over a case with three clauses; the bug is in the first. When it's
looking at one of startx's args it checks to see if $clientargs is empty
in order to see if it should set $client or add the argument to
$clientargs. It should also check to see whether $client is set.
There is a similar bug in parsing server args, where it checks to see if
$serverargs is empty to decide whether to set $server.
Debian bug#511717 (http://bugs.debian.org/511717)
Signed-off-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions