Fix the type of the last arg to execl()

Obtained from: OpenBSD
This commit is contained in:
Brian Somers 2001-07-09 08:17:47 +00:00
parent ffe734e3a2
commit b5b15b9e7f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79450

View file

@ -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",