execl() should be use NULL not 0
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
8174c9ca72
commit
d057115966
2 changed files with 3 additions and 3 deletions
|
@ -324,9 +324,9 @@ doshell() {
|
|||
shname = shell;
|
||||
|
||||
if (cflg)
|
||||
execl(shell, shname, "-c", cflg, 0);
|
||||
execl(shell, shname, "-c", cflg, NULL);
|
||||
else
|
||||
execl(shell, shname, "-i", 0);
|
||||
execl(shell, shname, "-i", NULL);
|
||||
|
||||
perror(shell);
|
||||
fail();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue