mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
When we try to set set-gid bit with chmod(2) on a file, which we own, but our
effective group ID (and any of our group) doesn't match the group ID of the file, we get EPERM. This doesn't conform POSIX. POSIX requires that we should return 0, but silently clear the set-gid bit.
This commit is contained in:
parent
5c92405025
commit
e9f0620b9f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166044
@ -28,7 +28,7 @@
|
||||
.\" @(#)chmod.2 8.1 (Berkeley) 6/4/93
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd December 9, 2006
|
||||
.Dd January 16, 2006
|
||||
.Dt CHMOD 2
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -175,6 +175,10 @@ Too many symbolic links were encountered in translating the pathname.
|
||||
The effective user ID does not match the owner of the file and
|
||||
the effective user ID is not the super-user.
|
||||
.It Bq Er EPERM
|
||||
The effective user ID is not the super-user, the effective user ID do match the
|
||||
owner of the file, but the group ID of the file does not match the effective
|
||||
group ID nor one of the supplementary group IDs.
|
||||
.It Bq Er EPERM
|
||||
The named file has its immutable or append-only flag set, see the
|
||||
.Xr chflags 2
|
||||
manual page for more information.
|
||||
|
Loading…
Reference in New Issue
Block a user