slitaz-tools rev 453

Fix: subox must execute args
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 21 17:07:55 2010 +0100 (2010-03-21)
parents 695fba12f245
children 1f9bec398de8
files tinyutils/subox
line diff
     1.1 --- a/tinyutils/subox	Sun Mar 21 12:50:53 2010 +0100
     1.2 +++ b/tinyutils/subox	Sun Mar 21 17:07:55 2010 +0100
     1.3 @@ -13,7 +13,7 @@
     1.4  fi
     1.5  
     1.6  # Nothing to do if we are root
     1.7 -test $(id -u) = 0 && exec $@
     1.8 +test $(id -u) = 0 && exec $1
     1.9  
    1.10  # Include gettext helper script.
    1.11  . /usr/bin/gettext.sh
    1.12 @@ -23,7 +23,7 @@
    1.13  export TEXTDOMAIN
    1.14  
    1.15  # Keep command in an exported variable to be used by SU_DIALOG.
    1.16 -export SU_CMD=$@
    1.17 +export SU_CMD=$1
    1.18  
    1.19  # Main window and root password default entry set to 'root'.
    1.20  export SU_DIALOG='
    1.21 @@ -37,7 +37,8 @@
    1.22  	</text>
    1.23  	<text wrap="true" width-chars="64">
    1.24  		<label>"'`gettext "
    1.25 -Please enter root password (default root) to execute :"`' '$1'
    1.26 +Please enter root password (default root) to execute :"`'
    1.27 +'$@'
    1.28  "
    1.29  		</label>
    1.30  	</text>