summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-11-29 18:51:25 +0000
committermillert <millert@openbsd.org>2001-11-29 18:51:25 +0000
commit0c47a90879a6192e3002812f94f6f3bdd8d582ec (patch)
tree035b6eae5c94e69627523aff04be14b3a2e490b5
parentgetfh(2) can fail with EPERM; Brian J. Kifiak (diff)
downloadwireguard-openbsd-0c47a90879a6192e3002812f94f6f3bdd8d582ec.tar.xz
wireguard-openbsd-0c47a90879a6192e3002812f94f6f3bdd8d582ec.zip
chflags(2) can return EPERM for other reasons.
From NetBSD via Brian J. Kifiak
-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.