mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Fix the type of the last arg to execl()
Obtained from: OpenBSD
This commit is contained in:
parent
ffe734e3a2
commit
b5b15b9e7f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79450
|
@ -558,7 +558,7 @@ ShellCommand(struct cmdargs const *arg, int bg)
|
|||
if (arg->prompt)
|
||||
printf("ppp: Pausing until %s finishes\n", shell);
|
||||
prompt_TtyOldMode(arg->prompt);
|
||||
execl(shell, shell, NULL);
|
||||
execl(shell, shell, (char *)NULL);
|
||||
}
|
||||
|
||||
log_Printf(LogWARN, "exec() of %s failed: %s\n",
|
||||
|
|
Loading…
Reference in a new issue