Module Name: src Committed By: martin Date: Mon Nov 25 10:24:57 UTC 2024
Modified Files: src/bin/sh [netbsd-10]: eval.c Log Message: Apply patch, requested by kre in ticket #1016: bin/sh/eval.c (apply patch) Fix "exec cmd" redirections to never close-on-exec Correct the bug reported by Edgar Fu� in: https://mail-index.netbsd.org/tech-userlevel/2024/11/05/msg014588.html where when /bin/sh evaluates exec command 3>/some/file fd 3 (any redirection for any fd > 2) gets "close on exec" set (inappropriately) causing the redirection to be evaluated, then immediately closed when the exec happens. To generate a diff of this commit: cvs rdiff -u -r1.188.2.1 -r1.188.2.2 src/bin/sh/eval.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.