mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Fix test 128 to work when sh is not the fsgqa login shell.
Merge of master-melb:xfs-cmds:26837a by kenmcd.
This commit is contained in:
@@ -45,7 +45,7 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user