aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2009-07-05 20:20:09 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2009-07-05 20:20:09 +0000
commit69a789b9855506bcfcde109c260c7aefb8574a68 (patch)
treeed83e94e587ccd3e1d955e0be7ae14437ae62b4e /lib
parent5b16c28c42e1a6521f4b4cbea5ef810f46a9515f (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/execve.211
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2
index 8cb25bcaf974..cdd4197a9986 100644
--- a/lib/libc/sys/execve.2
+++ b/lib/libc/sys/execve.2
@@ -220,13 +220,11 @@ Since execute permission is checked by
.Fn fexecve ,
the file descriptor
.Fa fd
-need not have been
-opened with the
+need not have been opened with the
.Dv O_EXEC
flag.
-However, if the file to be executed denies read and write
-permission for the process preparing to do the exec, the only way to
-provide the
+However, if the file to be executed denies read permission for the process
+preparing to do the exec, the only way to provide the
.Fa fd
to
.Fn fexecve
@@ -234,6 +232,7 @@ is to use the
.Dv O_EXEC
flag when opening
.Fa fd .
+Note that the file to be executed can not be open for writing.
.Sh RETURN VALUES
As the
.Fn execve
@@ -277,7 +276,7 @@ The new process file has the appropriate access
permission, but has an invalid magic number in its header.
.It Bq Er ETXTBSY
The new process file is a pure procedure (shared text)
-file that is currently open for writing or reading by some process.
+file that is currently open for writing by some process.
.It Bq Er ENOMEM
The new process requires more virtual memory than
is allowed by the imposed maximum