mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
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:
parent
d3caf029b5
commit
33e0d352b2
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue