summaryrefslogtreecommitdiffstats
path: root/tools/regression/fstest/tests
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2007-01-25 20:48:14 +0000
committerpjd <pjd@FreeBSD.org>2007-01-25 20:48:14 +0000
commite53af3d8e531279b3e0bb22b3a82f720b9e566ed (patch)
tree19e226b2bed290c155d0f850c1204196cb990d2b /tools/regression/fstest/tests
parent6b8f60851396e75a77f1c0ba6b213f65bb912141 (diff)
downloadFreeBSD-src-e53af3d8e531279b3e0bb22b3a82f720b9e566ed.zip
FreeBSD-src-e53af3d8e531279b3e0bb22b3a82f720b9e566ed.tar.gz
MFp4: When user is not a member of the group which owns a file, even if
he is the file's owner, he can't set set-gid bit. POSIX requires to return 0 and clear the bit, but FreeBSD returns EPERM for UFS in such case. For now do the same in ZFS.
Diffstat (limited to 'tools/regression/fstest/tests')
-rw-r--r--tools/regression/fstest/tests/chmod/00.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/fstest/tests/chmod/00.t b/tools/regression/fstest/tests/chmod/00.t
index 086f1ec..e6349e8 100644
--- a/tools/regression/fstest/tests/chmod/00.t
+++ b/tools/regression/fstest/tests/chmod/00.t
@@ -145,8 +145,8 @@ expect 0 -u 65535 -g 65535 chmod ${n0} 0755
expect 0755 stat ${n0} mode
# Unfortunately FreeBSD doesn't clear set-gid bit, but returns EPERM instead.
-case "${os}:${fs}" in
-FreeBSD:UFS)
+case "${os}" in
+FreeBSD)
expect EPERM -u 65535 -g 65534 chmod ${n0} 02755
expect 0755 stat ${n0} mode
;;
OpenPOWER on IntegriCloud