[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#511717: startx mis-parses initial client and serverarguments which begin with / or ./



Title: RE: Bug#511717: startx mis-parses initial client and serverarguments which begin with / or ./

Oops, that was an incorrect patch of course, it'd misparse something like "startx foo /abs/path bar" as wanting the client to be "/abs/path foo bar".  Corrected one attached.
--
Robert Macomber
robert.macomber@bigfishgames.com



 

Big Fish Games, Inc. A New Game Every Day!™


diff -ru a/startx b/startx
--- a/startx	2009-01-14 22:34:15.000000000 -0800
+++ b/startx	2009-01-14 22:50:10.000000000 -0800
@@ -54,13 +54,13 @@
     # '' required to prevent cpp from treating "/*" as a C comment.
     /''*|\./''*)
 	if [ "$whoseargs" = "client" ]; then
-	    if [ x"$clientargs" = x ]; then
+	    if [ x"$client" = x -a x"$clientargs" = x ]; then
 		client="$1"
 	    else
 		clientargs="$clientargs $1"
 	    fi
 	else
-	    if [ x"$serverargs" = x ]; then
+	    if [ x"$server" = x -a x"$serverargs" = x ]; then
 		server="$1"
 	    else
 		serverargs="$serverargs $1"

Reply to: