mirror of https://github.com/mkerrisk/man-pages
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:
parent
7ef75421c5
commit
b1724c3de4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue