execl must terminate with null pointer, not 0.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 4 Apr 2013 10:50:20 +0000 (12:50 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 4 Apr 2013 10:50:20 +0000 (12:50 +0200)
mdport.c

index eb33c32..03ebaf1 100644 (file)
--- a/mdport.c
+++ b/mdport.c
@@ -357,7 +357,7 @@ md_shellescape()
          */\r
         setuid(getuid());\r
         setgid(getgid());\r
-        execl(sh == NULL ? "/bin/sh" : sh, "shell", "-i", 0);\r
+        execl(sh == NULL ? "/bin/sh" : sh, "shell", "-i", (char *)0);\r
         perror("No shelly");\r
         _exit(-1);\r
     }\r