summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-09-02 21:28:05 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-09-02 21:28:05 +0000
commite0a1182b5d9a4b0aae783267722cb78bf5437a45 (patch)
tree1b9212b7d456f59ddae2b90fd78483589cad31b0 /usr.bin
parent725e98c9b80c026cc881f47e7e5a4bad384c21f2 (diff)
unset $RSH so we don't loop de loop in rcmd().
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rsh/rsh.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/rsh/rsh.c b/usr.bin/rsh/rsh.c
index bdde174f353..544a754bb0d 100644
--- a/usr.bin/rsh/rsh.c
+++ b/usr.bin/rsh/rsh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsh.c,v 1.8 1996/08/30 02:20:57 millert Exp $ */
+/* $OpenBSD: rsh.c,v 1.9 1996/09/02 21:28:04 millert Exp $ */
/*-
* Copyright (c) 1983, 1990 The Regents of the University of California.
@@ -41,7 +41,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)rsh.c 5.24 (Berkeley) 7/1/91";*/
-static char rcsid[] = "$OpenBSD: rsh.c,v 1.8 1996/08/30 02:20:57 millert Exp $";
+static char rcsid[] = "$OpenBSD: rsh.c,v 1.9 1996/09/02 21:28:04 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -214,6 +214,8 @@ main(argc, argv)
exit(1);
}
+ (void) unsetenv("RSH"); /* no tricks with rcmd(3) */
+
#ifdef KERBEROS
try_connect:
if (use_kerberos) {