Fix test 128 to work when sh is not the fsgqa login shell.
authorNathan Scott <nathans@sgi.com>
Tue, 22 Aug 2006 03:57:18 +0000 (03:57 +0000)
committerNathan Scott <nathans@sgi.com>
Tue, 22 Aug 2006 03:57:18 +0000 (03:57 +0000)
Merge of master-melb:xfs-cmds:26837a by kenmcd.

128

diff --git a/128 b/128
index fa9d2e58dfba70e44460a0c4de6c22651cb0d3b3..24bdac74d6dd7d265918727897af1f9778b004e5 100755 (executable)
--- a/128
+++ b/128
@@ -45,11 +45,11 @@ cp `which ls` $SCRATCH_MNT
 chmod 700 $SCRATCH_MNT/nosuid
 chmod 4755 $SCRATCH_MNT/ls
 
-su - $qa_user -c "$SCRATCH_MNT/ls $SCRATCH_MNT/nosuid >/dev/null 2>&1"
+su -s/bin/sh - $qa_user -c "$SCRATCH_MNT/ls $SCRATCH_MNT/nosuid >/dev/null 2>&1"
 if [ $? -eq 0 ] ; then
        echo "Error: we shouldn't be able to ls the directory"
 fi
 umount $SCRATCH_DEV
 
 status=0
-exit 
+exit