tools/test/stress2/misc/msdos12.sh: fix permission issue
This test runs with rights of an un-privileged user writing to a file system only writable by the owner. Since no UID was provided in the mount command, the owner of the file system was "root", and thus writing was not allowed for $testuser. Fix this issue by mounting with "-u $testuser". MFC after: 3 days
This commit is contained in:
@@ -44,7 +44,7 @@ gpart create -s bsd md$mdstart > /dev/null
|
|||||||
gpart add -t freebsd-ufs md$mdstart > /dev/null
|
gpart add -t freebsd-ufs md$mdstart > /dev/null
|
||||||
part=a
|
part=a
|
||||||
newfs_msdos -F 32 -b 8192 /dev/md$mdstart$part > /dev/null
|
newfs_msdos -F 32 -b 8192 /dev/md$mdstart$part > /dev/null
|
||||||
mount -t msdosfs /dev/md$mdstart$part $mntpoint
|
mount -t msdosfs -o "-u$testuser" /dev/md$mdstart$part $mntpoint
|
||||||
mkdir $mntpoint/stressX
|
mkdir $mntpoint/stressX
|
||||||
chmod 0777 $mntpoint/stressX
|
chmod 0777 $mntpoint/stressX
|
||||||
set +e
|
set +e
|
||||||
|
|||||||
Reference in New Issue
Block a user