If the named file has its immutable flag set, chown(2) returns EPERM.

This commit is contained in:
Pawel Jakub Dawidek 2006-12-09 22:41:26 +00:00
parent 54ec563e0d
commit 442cc490fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165050

View file

@ -32,7 +32,7 @@
.\" @(#)chown.2 8.4 (Berkeley) 4/19/94
.\" $FreeBSD$
.\"
.Dd April 19, 1994
.Dd December 9, 2006
.Dt CHOWN 2
.Os
.Sh NAME
@ -119,6 +119,10 @@ Search permission is denied for a component of the path prefix.
Too many symbolic links were encountered in translating the pathname.
.It Bq Er EPERM
The effective user ID is not the super-user.
.It Bq Er EPERM
The named file has its immutable flag set, see the
.Xr chflags 2
manual page for more information.
.It Bq Er EROFS
The named file resides on a read-only file system.
.It Bq Er EFAULT
@ -153,6 +157,7 @@ An I/O error occurred while reading from or writing to the file system.
.El
.Sh SEE ALSO
.Xr chgrp 1 ,
.Xr chflags 2 ,
.Xr chmod 2 ,
.Xr flock 2 ,
.Xr chown 8