summaryrefslogtreecommitdiffstats
path: root/bin/rcp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
committerbrian <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
commit8636b161b333b18525b6f5ffc5139079c29c0d63 (patch)
treea109115514a8774e981280efca775db8a410df5b /bin/rcp
parentef44874abb9460f2956eba8e3233154af304f5b1 (diff)
downloadFreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.zip
FreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.tar.gz
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
Diffstat (limited to 'bin/rcp')
-rw-r--r--bin/rcp/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/rcp/util.c b/bin/rcp/util.c
index 55c474f..8f6f123 100644
--- a/bin/rcp/util.c
+++ b/bin/rcp/util.c
@@ -123,7 +123,7 @@ susystem(s, userid)
case 0:
(void)setuid(userid);
- execl(_PATH_BSHELL, "sh", "-c", s, NULL);
+ execl(_PATH_BSHELL, "sh", "-c", s, (char *)NULL);
_exit(127);
}
istat = signal(SIGINT, SIG_IGN);
OpenPOWER on IntegriCloud