aboutsummaryrefslogtreecommitdiffstats
path: root/prefdm
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-11 20:42:53 +0000
committerBill Nottingham <notting@redhat.com>2005-04-11 20:42:53 +0000
commit95ff445c72d1c997729875639b3a241cd6432db1 (patch)
treeea5532e2cbfc28f7e816db0b4aef7701ed1018d9 /prefdm
parenta55728d160bb9005464cbc18950302fa3f81f7d7 (diff)
downloadinitscripts-95ff445c72d1c997729875639b3a241cd6432db1.tar
initscripts-95ff445c72d1c997729875639b3a241cd6432db1.tar.gz
initscripts-95ff445c72d1c997729875639b3a241cd6432db1.tar.bz2
initscripts-95ff445c72d1c997729875639b3a241cd6432db1.tar.xz
initscripts-95ff445c72d1c997729875639b3a241cd6432db1.zip
fix prefdm arg handling (#154312, <khc@pm.waw.pl>)
Diffstat (limited to 'prefdm')
-rwxr-xr-xprefdm8
1 files changed, 4 insertions, 4 deletions
diff --git a/prefdm b/prefdm
index 63d6a0db..303bfd2d 100755
--- a/prefdm
+++ b/prefdm
@@ -26,12 +26,12 @@ fi
shopt -s execfail
-[ -n "$preferred" ] && exec $preferred $* >/dev/null 2>&1
+[ -n "$preferred" ] && exec $preferred "$@" >/dev/null 2>&1
# Fallbacks, in order
-exec gdm $* >/dev/null 2>&1
-exec kdm $* >/dev/null 2>&1
-exec xdm $* >/dev/null 2>&1
+exec gdm "$@" >/dev/null 2>&1
+exec kdm "$@" >/dev/null 2>&1
+exec xdm "$@" >/dev/null 2>&1
# catch all exit error
exit 1