Re: fececve man page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/21/19 6:44 PM, Simone Piccardi wrote:
> 
> In http://man7.org/linux/man-pages/man3/fexecve.3.html in the reported 
> errors there are only EINVAL and ENOSYS but in the BUGS section is cited 
> also ENOENT (I suppose coming from execveat) for trying to use a script.
> 
> Furthermore I think that ENOSYS should be cited as present only when 
> fexecve is not implemented using execveat.

Thanks, Simone. I've applied the following diff.

Cheers,

Michael

diff --git a/man3/fexecve.3 b/man3/fexecve.3
index 25cf049dc..73b086881 100644
--- a/man3/fexecve.3
+++ b/man3/fexecve.3
@@ -86,8 +86,18 @@ is NULL, or
 .I envp
 is NULL.
 .TP
+.B ENOENT
+The close-on-exec flag is set on
+.IR fd ,
+and
+.I fd
+refers to a script.
+See BUGS.
+.TP
 .B ENOSYS
-The
+The kernel does not provide the
+.BR execveat (2)
+system call, and the
 .I /proc
 filesystem could not be accessed.
 .SH VERSIONS



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux