From: Todd C. Miller Date: Sun, 25 Nov 2012 13:12:55 +0000 (-0500) Subject: Bash doesn't let you set UID to use MYUID instead. X-Git-Tag: SUDO_1_8_7~1^2~325 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cca915e39bddb19cd5828d6bfe2c2187865a655a;p=sudo Bash doesn't let you set UID to use MYUID instead. --- diff --git a/plugins/sudoers/regress/testsudoers/test2.sh b/plugins/sudoers/regress/testsudoers/test2.sh index 9dd4df29a..2d9da3f5c 100755 --- a/plugins/sudoers/regress/testsudoers/test2.sh +++ b/plugins/sudoers/regress/testsudoers/test2.sh @@ -4,8 +4,8 @@ # USER=`\ls -l $TESTDIR/test2.inc | awk '{print $3}'` -UID=`id -u $USER` +MYUID=`id -u $USER` exec 2>&1 -./testsudoers -U $UID root id <&1 -./testsudoers -U $UID root id <&1 # Test world writable chmod 666 $TESTFILE -./testsudoers -U $UID root id <