execveat.2: The error for AT_SYMLINK_NOFOLLOW on a symlink is ELOOP (not EINVAL)

Reported-by: David Drysdale <drysdale@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-01-10 08:53:33 +01:00
parent 7ef75421c5
commit b1724c3de4
1 changed files with 5 additions and 5 deletions

View File

@ -103,7 +103,7 @@ If the file identified by
and a non-NULL
.I pathname
is a symbolic link, then the call fails with the error
.BR EINVAL .
.BR ELOOP .
.SH "RETURN VALUE"
On success,
.BR execveat ()
@ -124,6 +124,10 @@ The following additional errors can occur for
is not a valid file descriptor.
.TP
.B EINVAL
Invalid flag specified in
.IR flags .
.TP
.B ELOOP
.I flags
includes
.BR AT_SYMLINK_NOFOLLOW
@ -133,10 +137,6 @@ and a non-NULL
.I pathname
is a symbolic link.
.TP
.B EINVAL
Invalid flag specified in
.IR flags .
.TP
.B ENOENT
The program identified by
.I dirfd