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.
This commit is contained in:
Pawel Jakub Dawidek 2007-01-25 20:48:14 +00:00
parent d3caf029b5
commit 33e0d352b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166231

View File

@ -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
;;