diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2007-01-25 20:48:14 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2007-01-25 20:48:14 +0000 |
commit | 33e0d352b25d0e7c92ced1014d1c2eb86fa4cff2 (patch) | |
tree | 19e226b2bed290c155d0f850c1204196cb990d2b /tools | |
parent | d3caf029b5225b1df23e8c4de36a2e1d6d2842a8 (diff) | |
download | src-33e0d352b25d0e7c92ced1014d1c2eb86fa4cff2.tar.gz src-33e0d352b25d0e7c92ced1014d1c2eb86fa4cff2.zip |
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.
Notes
Notes:
svn path=/head/; revision=166231
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/fstest/tests/chmod/00.t | 4 |
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 086f1ec77ea5..e6349e8cc9ed 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 ;; |