summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-09-16 00:56:47 +0000
committerngie <ngie@FreeBSD.org>2014-09-16 00:56:47 +0000
commit356c289c25884fd6b060f0636c48aafeeb974ab6 (patch)
tree666a09b9d4a1e0ce1529377a8a4fe832bac63482 /lib
parent80b8071609d328fad184f145d51bb9d0fd790d9c (diff)
downloadFreeBSD-src-356c289c25884fd6b060f0636c48aafeeb974ab6.zip
FreeBSD-src-356c289c25884fd6b060f0636c48aafeeb974ab6.tar.gz
Validate the mode argument in access, eaccess, and faccessat for optional
POSIX compliance and to improve compatibility with Linux and NetBSD The issue was identified with lib/libc/sys/t_access:access_inval from NetBSD Update the manpage accordingly PR: 181155 Reviewed by: jilles (code), jmmv (code), wblock (manpage), wollman (code) MFC after: 4 weeks Phabric: D678 (code), D786 (manpage) Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/access.210
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/sys/access.2 b/lib/libc/sys/access.2
index 65b8fb6..edc6194 100644
--- a/lib/libc/sys/access.2
+++ b/lib/libc/sys/access.2
@@ -133,8 +133,16 @@ and
.Sh RETURN VALUES
.Rv -std
.Sh ERRORS
-Access to the file is denied if:
+.Fn access ,
+.Fn eaccess ,
+or
+.Fn faccessat
+will fail if:
.Bl -tag -width Er
+.It Bq Er EINVAL
+The value of the
+.Fa mode
+argument is invalid.
.It Bq Er ENOTDIR
A component of the path prefix is not a directory.
.It Bq Er ENAMETOOLONG
OpenPOWER on IntegriCloud