Page MenuHomeFreeBSD

D56704.diff
No OneTemporary

D56704.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,17 @@
.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 mounting
+.Xr fdescfs 4
+on
+.Pa /dev/fd
+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
Thu, Jul 16, 7:20 AM (18 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32429709
Default Alt Text
D56704.diff (709 B)

Event Timeline