2010-11-08 16:25:44 -05:00
|
|
|
$OpenBSD: patch-command_c,v 1.3 2010/11/08 21:25:44 edd Exp $
|
|
|
|
--- command.c.orig Sun Oct 24 11:11:25 2010
|
|
|
|
+++ command.c Sun Oct 24 11:11:43 2010
|
|
|
|
@@ -3379,7 +3379,7 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd)
|
|
|
|
case MP_CMD_RUN:
|
2009-10-11 09:36:23 -04:00
|
|
|
#ifndef __MINGW32__
|
2010-11-08 16:25:44 -05:00
|
|
|
if (!fork()) {
|
|
|
|
- execl("/bin/sh", "sh", "-c", cmd->args[0].v.s, NULL);
|
|
|
|
+ execl("/bin/sh", "sh", "-c", cmd->args[0].v.s, (char *) NULL);
|
|
|
|
exit(0);
|
|
|
|
}
|
2009-10-11 09:36:23 -04:00
|
|
|
#endif
|