From cca915e39bddb19cd5828d6bfe2c2187865a655a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 25 Nov 2012 08:12:55 -0500 Subject: [PATCH] Bash doesn't let you set UID to use MYUID instead. --- plugins/sudoers/regress/testsudoers/test2.sh | 4 ++-- plugins/sudoers/regress/testsudoers/test3.sh | 4 ++-- plugins/sudoers/regress/testsudoers/test5.sh | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) 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 <