From b440741db4ea1ccfa17acc2b3c37863dd819dcf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Thu, 11 Jun 2026 13:42:23 +0200 Subject: [PATCH] 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 --- tools/test/stress2/misc/msdos12.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test/stress2/misc/msdos12.sh b/tools/test/stress2/misc/msdos12.sh index 8e3984305cd..e34c26046a9 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