You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <ma...@mch.sni.de> on 1998/12/22 21:19:33 UTC
[PATCH] Fix ap_execve.c to fall back to $SHELL
Currently, ap_execve.c interprets the #!/interpreter line in shell scripts
if NEED_HASHBANG_EMUL is set (on UTS2.1, BS2000, ...).
It does that just fine, only it fails to fall back to $SHELL if a
script does NOT have a 1st line of hashbang. That was simply an omission
by me some time ago :-( And nobody ever noticed ;-)
Here's a patch. It's not very beautiful, and I am thinking of rewriting
all the malloc() stuff to use ap_make_array() and friends. This
malloc uglyness would become much nicer, I think.
OTOH, I would have to create a ap_make_sub_pool(NULL), which isn't all
that beautiful either.
Anyway, here's a first go at the missing $SHELL call for hashbang-less
scripts:
Martin
--
<Ma...@Mch.SNI.De> | Siemens Information and
Phone: +49-89-636-46021 | Communication Products
FAX: +49-89-636-47816 | 81730 Munich, Germany