From dfd6a083db2a376160d21988093bf52f091dc24c Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Sun, 4 Apr 2004 20:53:23 +0000 Subject: [PATCH] Cast the terminating NULL to char * in the execl() call. Submitted by: Stefan Farfeleder --- libexec/rshd/rshd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index 7fa68f1699cb..323cb0a4e592 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); }