summaryrefslogtreecommitdiff
path: root/libexec/rshd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-09 07:05:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-09 07:05:10 +0000
commite794dc8249450a31cf35cb2aa88a33779325b689 (patch)
tree7fe943aa48c43bd24ed6b9267ab44c0191c44d4a /libexec/rshd
parent5b1ba3114a10793470c731e714160f24131b690d (diff)
correct type on last arg to execl(); nordin@cse.ogi.edu
Diffstat (limited to 'libexec/rshd')
-rw-r--r--libexec/rshd/rshd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c
index 72f7958a46d..8592a841927 100644
--- a/libexec/rshd/rshd.c
+++ b/libexec/rshd/rshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rshd.c,v 1.38 2001/06/11 15:18:51 mickey Exp $ */
+/* $OpenBSD: rshd.c,v 1.39 2001/07/09 07:04:44 deraadt Exp $ */
/*-
* Copyright (c) 1988, 1989, 1992, 1993, 1994
@@ -41,7 +41,7 @@ static char copyright[] =
#ifndef lint
/* from: static char sccsid[] = "@(#)rshd.c 8.2 (Berkeley) 4/6/94"; */
-static char *rcsid = "$OpenBSD: rshd.c,v 1.38 2001/06/11 15:18:51 mickey Exp $";
+static char *rcsid = "$OpenBSD: rshd.c,v 1.39 2001/07/09 07:04:44 deraadt Exp $";
#endif /* not lint */
/*
@@ -751,7 +751,7 @@ fail:
syslog(LOG_INFO|LOG_AUTH, "%s@%s as %s: cmd='%.80s'",
remuser, hostname, locuser, cmdbuf);
}
- execl(pwd->pw_shell, cp, "-c", cmdbuf, 0);
+ execl(pwd->pw_shell, cp, "-c", cmdbuf, (char *)NULL);
perror(pwd->pw_shell);
exit(1);
}