chiark / gitweb /
rand/noise.c (noise_filter): Invoke the shell properly.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 13 Jul 2013 15:34:40 +0000 (16:34 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 13 Mar 2014 01:51:43 +0000 (01:51 +0000)
This has been buggered forever. :-/

rand/noise.c

index a1683858bf3dc13a29692b507d1a257d907e6698..aa45e03b822ea9f17cce1b35ecaae05f48aab0fe 100644 (file)
@@ -294,7 +294,7 @@ int noise_filter(rand_pool *r, int good, const char *c)
 
     /* --- Start the process up --- */
 
-    execle("/bin/sh", "-c", c, (char *)0, env);
+    execle("/bin/sh", "sh", "-c", c, (char *)0, env);
     _exit(127);
   }