diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-17 06:00:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-17 06:00:53 +0000 |
commit | 56ddb51a6a65e36924276ea742a9954979bf6054 (patch) | |
tree | 423195a4bcf51716dbf260b95f93aa0020b6a1c9 /lib | |
parent | cf9c1e76089fd1293806c61cbde28ba306f78d75 (diff) |
make chmod() and fchmod() return EINVAL for bad mode bits
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/chmod.2 | 3 |
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 |