From 3d3c519dec674fdc93ef7ddaad6abbc8f176ceb5 Mon Sep 17 00:00:00 2001 From: pjd Date: Sat, 9 Dec 2006 22:41:01 +0000 Subject: If the named file has its immutable flag set, chmod(2) returns EPERM. --- lib/libc/sys/chmod.2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/sys/chmod.2 b/lib/libc/sys/chmod.2 index fc6a932..1efffda 100644 --- a/lib/libc/sys/chmod.2 +++ b/lib/libc/sys/chmod.2 @@ -32,7 +32,7 @@ .\" @(#)chmod.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd December 29, 2004 +.Dd December 9, 2006 .Dt CHMOD 2 .Os .Sh NAME @@ -178,6 +178,10 @@ Too many symbolic links were encountered in translating the pathname. .It Bq Er EPERM 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 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 @@ -209,6 +213,7 @@ An I/O error occurred while reading from or writing to the file system. .El .Sh SEE ALSO .Xr chmod 1 , +.Xr chflags 2 , .Xr chown 2 , .Xr open 2 , .Xr stat 2 , -- cgit v1.1