httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <>
Subject [PATCH] Fix ap_execve.c to fall back to $SHELL
Date Tue, 22 Dec 1998 20:19:33 GMT
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

<Martin.Kraemer@Mch.SNI.De>      |        Siemens Information and
Phone: +49-89-636-46021          |        Communication  Products
FAX:   +49-89-636-47816          |        81730  Munich,  Germany

View raw message