aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2026-06-11 11:42:23 +0000
committerStefan Eßer <se@FreeBSD.org>2026-06-11 11:48:49 +0000
commitb440741db4ea1ccfa17acc2b3c37863dd819dcf3 (patch)
tree5adee12c54da56e834f631f1c0715d172563b290
parent92ae21e8a155734f73589b7ef9fa19a6bb6d042f (diff)
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
-rwxr-xr-xtools/test/stress2/misc/msdos12.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/stress2/misc/msdos12.sh b/tools/test/stress2/misc/msdos12.sh
index 8e3984305cd7..e34c26046a96 100755
--- a/tools/test/stress2/misc/msdos12.sh
+++ b/tools/test/stress2/misc/msdos12.sh
@@ -44,7 +44,7 @@ gpart create -s bsd md$mdstart > /dev/null
gpart add -t freebsd-ufs md$mdstart > /dev/null
part=a
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
chmod 0777 $mntpoint/stressX
set +e