projects
/
rogue-pphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
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
eb33c32
..
03ebaf1
100644
(file)
--- a/
mdport.c
+++ b/
mdport.c
@@
-357,7
+357,7
@@
md_shellescape()
*/
\r
setuid(getuid());
\r
setgid(getgid());
\r
*/
\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
perror("No shelly");
\r
_exit(-1);
\r
}
\r