2010-05-26 17:29:56 -04:00
|
|
|
$OpenBSD: patch-command_c,v 1.2 2010/05/26 21:29:56 jakemsr Exp $
|
|
|
|
--- command.c.orig Sat Jan 30 23:24:23 2010
|
|
|
|
+++ command.c Mon Mar 8 14:28:42 2010
|
|
|
|
@@ -3167,7 +3167,7 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
|
2009-10-11 09:36:23 -04:00
|
|
|
case MP_CMD_RUN:
|
|
|
|
#ifndef __MINGW32__
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
#endif
|