From: Ian Jackson Date: Thu, 11 Aug 2022 18:23:34 +0000 (+0100) Subject: prefork-interp: fix non-script-arg case X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=dcd1b6dc550364e023f43bd3b76f176035888b76;p=chiark-utils.git prefork-interp: fix non-script-arg case Signed-off-by: Ian Jackson --- diff --git a/cprogs/prefork.c b/cprogs/prefork.c index 425974c..2563941 100644 --- a/cprogs/prefork.c +++ b/cprogs/prefork.c @@ -148,7 +148,8 @@ void find_socket_path(void) { int i; ident_addstring(0,interp); - ident_addstring(0,script); + if (script) + ident_addstring(0,script); sha256_digest(&identsc,sizeof(bbuf),bbuf); for (i=0; i