projects
/
rogue-pphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92078a9
)
execl must terminate with null pointer, not 0.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Thu, 4 Apr 2013 10:50:20 +0000
(12:50 +0200)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Thu, 4 Apr 2013 10:50:20 +0000
(12:50 +0200)
mdport.c
patch
|
blob
|
history
diff --git
a/mdport.c
b/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