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 eb33c32082450c7255ded3562ce9375d92f9c33b..03ebaf156d0686c048fd45a0082c0d99d7b76d4d 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