Don't execute scripts without '#!' marker through /bin/sh.
commit9042e0456ac72d9333e2d48970c7f2835acfbf79
authorBruno Haible <bruno@clisp.org>
Wed, 23 Dec 2020 22:58:17 +0000 (23 23:58 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 24 Dec 2020 04:31:53 +0000 (24 05:31 +0100)
treebac35fc104ba749c8e734950c336e7dee1644369
parent7fb61502d5a61ad73a3990a214b29d522245c4bc
Don't execute scripts without '#!' marker through /bin/sh.

This reflects the change done in glibc through
<https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
<https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.

* lib/spawni.c (internal_function): Remove macro.
(script_execute): Remove function.
(__spawni): Don't invoke script_execute.
* lib/execute.c (execute): Disable the ENOEXEC handling.
* lib/spawn-pipe.c (create_pipe): Likewise.
* NEWS: Mention the change.
ChangeLog
NEWS
lib/execute.c
lib/spawn-pipe.c
lib/spawni.c