From: Ian Jackson Date: Tue, 22 Mar 2016 14:06:44 +0000 (+0000) Subject: cgi-fcgi-interp: Rename from cgi-fcgi-perl, and adjust arg handling X-Git-Tag: archive/debian/5.0.0~72 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=commitdiff_plain;h=982636bcdb809dfb41f30f02e73c09a900bb7788 cgi-fcgi-interp: Rename from cgi-fcgi-perl, and adjust arg handling --- diff --git a/.gitignore b/.gitignore index b08c589..73dbc62 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,7 @@ cprogs/watershed cprogs/watershed.txt cprogs/rcopy-repeatedly cprogs/acctdump -cprogs/cgi-fcgi-perl +cprogs/cgi-fcgi-interp debian/tmp debian/sv-* diff --git a/cprogs/Makefile b/cprogs/Makefile index 7bb1e27..496b33e 100644 --- a/cprogs/Makefile +++ b/cprogs/Makefile @@ -29,7 +29,7 @@ RWBUFFER_SIZE_MB=16 PROGRAMS= readbuffer writebuffer with-lock-ex xbatmon-simple \ summer watershed rcopy-repeatedly xduplic-copier \ - cgi-fcgi-perl + cgi-fcgi-interp SUIDSBINPROGRAMS= really DAEMONS= trivsoundd MAN1PAGES= readbuffer.1 writebuffer.1 with-lock-ex.1 \ @@ -76,8 +76,8 @@ rcopy-repeatedly: LDLIBS += -lm -lrt watershed: watershed.o common.o watershed: LDLIBS += -lnettle -lgmp -cgi-fcgi-perl: cgi-fcgi-perl.o myopt.o common.o -cgi-fcgi-perl: LDLIBS += -lnettle -lgmp +cgi-fcgi-interp: cgi-fcgi-interp.o myopt.o common.o +cgi-fcgi-interp: LDLIBS += -lnettle -lgmp watershed.txt: watershed.c sed '/^$$/,$$d' <$^ >$@.new && mv -f $@.new $@ diff --git a/cprogs/cgi-fcgi-perl.c b/cprogs/cgi-fcgi-interp.c similarity index 67% rename from cprogs/cgi-fcgi-perl.c rename to cprogs/cgi-fcgi-interp.c index 83bd962..1e368f0 100644 --- a/cprogs/cgi-fcgi-perl.c +++ b/cprogs/cgi-fcgi-interp.c @@ -1,18 +1,24 @@ /* * "Interpreter" that you can put in #! like this - * #!/usr/bin/cgi-fcgi-perl [] + * #!/usr/bin/cgi-fcgi-interp [] + * #!/usr/bin/cgi-fcgi-interp [], * * The result is a program which looks, when executed via the #! - * line, like a CGI program. But the perl script inside will - * be executed via /usr/bin/perl in fcgi. + * line, like a CGI program. But the script inside will be executed + * via in an fcgi context. * * Options: * + * + * The real interpreter to use. Eg "perl". Need not + * be an absolute path; will be fed to execvp. + * * -g * Use rather than hex(sha256(