mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +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
@ -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…
Reference in New Issue
Block a user