summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-11-29 18:51:26 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-11-29 18:51:26 +0000
commit44a9e8246c84537509df509941cdfffc742a5216 (patch)
tree4da46554cf224e0532c6068d081bfd927079449b /lib/libc/sys
parent752b7a3ce9cfb7631f46b904e6968aa918c6729d (diff)
chflags(2) can return EPERM for other reasons.
From NetBSD via Brian J. Kifiak
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/chflags.210
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/sys/chflags.2 b/lib/libc/sys/chflags.2
index 5338ec8d8db..121a96b52ec 100644
--- a/lib/libc/sys/chflags.2
+++ b/lib/libc/sys/chflags.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chflags.2,v 1.15 2000/10/18 05:12:08 aaron Exp $
+.\" $OpenBSD: chflags.2,v 1.16 2001/11/29 18:51:25 millert Exp $
.\" $NetBSD: chflags.2,v 1.6 1995/02/27 12:32:03 cgd Exp $
.\"
.\" Copyright (c) 1989, 1993
@@ -116,7 +116,9 @@ 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 does not match the owner of the file and
-the effective user ID is not the superuser.
+the effective user ID is not the superuser, or the effective user ID
+is not the superuser and at least one of the super-user-only flags
+for the named file would be changed.
.It Bq Er EOPNOTSUPP
The named file resides on a file system that does not support file
flags.
@@ -145,7 +147,9 @@ Only the superuser can change flags on block and character devices.
The flags value is invalid.
.It Bq Er EPERM
The effective user ID does not match the owner of the file and
-the effective user ID is not the superuser.
+the effective user ID is not the superuser, or the effective user ID
+is not the superuser and at least one of the super-user-only flags
+for the named file would be changed.
.It Bq Er EOPNOTSUPP
The named file resides on a file system that does not support file
flags.