summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-11-17 06:00:50 +0000
committerderaadt <deraadt@openbsd.org>1997-11-17 06:00:50 +0000
commit7916d3c6f0d53a9ee9a3edb356933da23a9556cd (patch)
treed08beb1ea943248f4852c72431355125d6e6effc /lib
parentindent (diff)
downloadwireguard-openbsd-7916d3c6f0d53a9ee9a3edb356933da23a9556cd.tar.xz
wireguard-openbsd-7916d3c6f0d53a9ee9a3edb356933da23a9556cd.zip
make chmod() and fchmod() return EINVAL for bad mode bits
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/chmod.23
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/sys/chmod.2 b/lib/libc/sys/chmod.2
index e32bd0f6ced..a87b3ac4686 100644
--- a/lib/libc/sys/chmod.2
+++ b/lib/libc/sys/chmod.2
@@ -164,6 +164,9 @@ The descriptor is not valid.
.It Bq Er EINVAL
.Fa Fd
refers to a socket, not to a file.
+.It Bq Er EINVAL
+.Fa mode
+is not valid, ie. contains extra bits.
.It Bq Er EROFS
The file resides on a read-only file system.
.It Bq Er EIO