From dc2a9dbf021e23b51591df2fb04c476355ae26d6 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Thu, 4 Apr 2013 12:50:20 +0200 Subject: [PATCH] execl must terminate with null pointer, not 0. --- mdport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdport.c b/mdport.c index eb33c32..03ebaf1 100644 --- a/mdport.c +++ b/mdport.c @@ -357,7 +357,7 @@ md_shellescape() */ setuid(getuid()); setgid(getgid()); - execl(sh == NULL ? "/bin/sh" : sh, "shell", "-i", 0); + execl(sh == NULL ? "/bin/sh" : sh, "shell", "-i", (char *)0); perror("No shelly"); _exit(-1); } -- 2.20.1