13 lines
424 B
Plaintext
13 lines
424 B
Plaintext
$OpenBSD: patch-src_exec_c,v 1.1 2002/12/29 00:10:48 pvalchev Exp $
|
|
--- src/exec.c.orig Sat Dec 28 15:37:30 2002
|
|
+++ src/exec.c Sat Dec 28 15:37:38 2002
|
|
@@ -402,7 +402,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
|