openbsd-ports/misc/screen/patches/patch-fileio_c
naddy 8b6b0f3129 * don't roll your own execvpe()
* plain NULL is fine as sentinel now
2012-03-23 21:37:50 +00:00

13 lines
385 B
Plaintext

$OpenBSD: patch-fileio_c,v 1.2 2012/03/23 21:37:50 naddy Exp $
--- fileio.c.orig Mon Sep 8 16:25:28 2003
+++ fileio.c Fri Mar 23 22:27:59 2012
@@ -779,7 +779,7 @@ char *cmd;
#ifdef SIGPIPE
signal(SIGPIPE, SIG_DFL);
#endif
- execl("/bin/sh", "sh", "-c", cmd, 0);
+ execl("/bin/sh", "sh", "-c", cmd, NULL);
Panic(errno, "/bin/sh");
default:
break;