On Mon, Feb 11, 2008 at 03:03:50AM +0100, Daniel Hahler wrote:
> The attached patch should fix this.

Not that it matter much, but your patch is not against the upstream version:
sudo is the default instead of su.
I do not see why ubuntu make that change since they could just add
a file /etc/su-to-rootrc with
SU_TO_ROOT_SU=sudo
to achieve the same effect without patching su-to-root and make it 
interface-incompatible with upstream.

> --- /tmp/menu-2.1.37ubuntu1/scripts/su-to-root        2008-02-10 
> 23:06:59.893067334 +0100
> +++ /usr/sbin/su-to-root      2008-02-11 03:00:10.000000000 +0100
> @@ -65,9 +65,9 @@
>      
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
>      SHELL=`eshell $PRIV`
>      case $SU_TO_ROOT_SU in
> -      sux)  suname=sux; pwuser="$PRIV"; cmd='sux  -p "$PRIV"    "$COMMAND"';;
> +      sux)  suname=sux; pwuser="$PRIV"; cmd='sux  -p "$PRIV"     $COMMAND ';;
>        su)   suname=su;  pwuser="$PRIV"; cmd='su   -p "$PRIV" -c "$COMMAND"';;
> -      *)    suname=sudo;pwuser="$USER"; cmd='sudo -u "$PRIV"    "$COMMAND"';;
> +      *)    suname=sudo;pwuser="$USER"; cmd='sudo -u "$PRIV"     $COMMAND ';;
>      esac
>      transl 'Using %s...\n' "$suname"
>      transl 'Enter %s passwd at prompt.\n' "$pwuser"

Cheers,
Bill.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to