diff options
author | mux <mux@FreeBSD.org> | 2004-04-04 20:53:23 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2004-04-04 20:53:23 +0000 |
commit | 1d9918b99ca4fe723570a37e5f944fe30b473a1b (patch) | |
tree | bd8a9c3da710bb250dfddbba6a6cf5e136324d00 | |
parent | 37382454e087ae1464efd48a594a7edfd8db95d2 (diff) | |
download | FreeBSD-src-1d9918b99ca4fe723570a37e5f944fe30b473a1b.zip FreeBSD-src-1d9918b99ca4fe723570a37e5f944fe30b473a1b.tar.gz |
Cast the terminating NULL to char * in the execl() call.
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
-rw-r--r-- | libexec/rshd/rshd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index 7fa68f1..323cb0a 100644 --- a/libexec/rshd/rshd.c +++ b/libexec/rshd/rshd.c @@ -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); } |