13 lines
422 B
Plaintext
13 lines
422 B
Plaintext
$OpenBSD: patch-src_exec_c,v 1.3 2008/11/23 00:34:21 jasper Exp $
|
|
--- src/exec.c.orig Tue Sep 9 23:31:08 2003
|
|
+++ src/exec.c Sun Nov 23 01:33:25 2008
|
|
@@ -406,7 +406,7 @@ static int exec_fire_up(exec_t* exec) {
|
|
for (i = 3; i < 1024; i++)
|
|
close(i);
|
|
|
|
- execl("/bin/sh", "sh", "-c", exec->command, 0);
|
|
+ execl("/bin/sh", "sh", "-c", exec->command, (void *)NULL);
|
|
_exit(-1);
|
|
default:
|
|
// parent
|