mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
Cast the terminating NULL to char * in the execl() call.
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
This commit is contained in:
parent
46aeebec57
commit
dfd6a083db
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127864
1 changed files with 1 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ doit(struct sockaddr *fromp)
|
|||
syslog(LOG_INFO|LOG_AUTH, "%s@%s as %s: cmd='%.80s'",
|
||||
ruser, rhost, luser, cmdbuf);
|
||||
}
|
||||
execl(pwd->pw_shell, cp, "-c", cmdbuf, NULL);
|
||||
execl(pwd->pw_shell, cp, "-c", cmdbuf, (char *)NULL);
|
||||
err(1, "%s", pwd->pw_shell);
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue