Page MenuHomeFreeBSD

D56704.id176761.diff
No OneTemporary

D56704.id176761.diff

diff --git a/lib/libsys/execve.2 b/lib/libsys/execve.2
--- a/lib/libsys/execve.2
+++ b/lib/libsys/execve.2
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd July 02, 2025
+.Dd April 29, 2026
.Dt EXECVE 2
.Os
.Sh NAME
@@ -232,6 +232,15 @@
.Dv O_EXEC
flag when opening
.Fa fd .
+Opening without
+.Dv O_EXEC
+may be necessary in the case of executing an interpreted program, as the
+interpreter will not be able to acquire a descriptor to the script for reading
+without configuring
+.Xr fdescfs 4
+with the
+.Cm nodup
+option.
Note that the file to be executed can not be open for writing.
.Sh RETURN VALUES
As the

File Metadata

Mime Type
text/plain
Expires
Sat, Aug 29, 8:54 PM (39 m, 15 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37540543
Default Alt Text
D56704.id176761.diff (695 B)

Event Timeline