summaryrefslogtreecommitdiff
path: root/usr.bin/rsh
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-01-27 05:27:43 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-01-27 05:27:43 +0000
commita6b322aae61711ffd264d13baa565f382f5d4ed1 (patch)
treeac54eda9e09d7f3cce4cb0c3f692a14e06a0caaa /usr.bin/rsh
parentc799df3481db4ee6400e4ca7e315ffdc059bfc8f (diff)
enable IPv6 support.
Diffstat (limited to 'usr.bin/rsh')
-rw-r--r--usr.bin/rsh/rsh.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/rsh/rsh.c b/usr.bin/rsh/rsh.c
index d5967e5c8f7..b2905d43b72 100644
--- a/usr.bin/rsh/rsh.c
+++ b/usr.bin/rsh/rsh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsh.c,v 1.17 1998/03/25 19:53:21 art Exp $ */
+/* $OpenBSD: rsh.c,v 1.18 2000/01/27 05:27:42 itojun 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.17 1998/03/25 19:53:21 art Exp $";
+static char rcsid[] = "$OpenBSD: rsh.c,v 1.18 2000/01/27 05:27:42 itojun Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -265,10 +265,12 @@ try_connect:
"rsh: the -x flag requires Kerberos authentication.\n");
exit(1);
}
- rem = rcmd(&host, sp->s_port, pw->pw_name, user, args, &rfd2);
+ rem = rcmd_af(&host, sp->s_port, pw->pw_name, user, args,
+ &rfd2, PF_UNSPEC);
}
#else
- rem = rcmd(&host, sp->s_port, pw->pw_name, user, args, &rfd2);
+ rem = rcmd_af(&host, sp->s_port, pw->pw_name, user, args, &rfd2,
+ PF_UNSPEC);
#endif
if (rem < 0)