diff options
-rw-r--r-- | src/lib/libc/net/rcmdsh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/rcmdsh.c b/src/lib/libc/net/rcmdsh.c index b2130fd233..93523a4c56 100644 --- a/src/lib/libc/net/rcmdsh.c +++ b/src/lib/libc/net/rcmdsh.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rcmdsh.c,v 1.4 1997/07/23 16:59:37 millert Exp $ */ | 1 | /* $OpenBSD: rcmdsh.c,v 1.5 1998/04/25 16:23:58 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * This is an rcmd() replacement originally by | 4 | * This is an rcmd() replacement originally by |
@@ -6,7 +6,7 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #if defined(LIBC_SCCS) && !defined(lint) | 8 | #if defined(LIBC_SCCS) && !defined(lint) |
9 | static char *rcsid = "$OpenBSD: rcmdsh.c,v 1.4 1997/07/23 16:59:37 millert Exp $"; | 9 | static char *rcsid = "$OpenBSD: rcmdsh.c,v 1.5 1998/04/25 16:23:58 millert Exp $"; |
10 | #endif /* LIBC_SCCS and not lint */ | 10 | #endif /* LIBC_SCCS and not lint */ |
11 | 11 | ||
12 | #include <sys/types.h> | 12 | #include <sys/types.h> |
@@ -59,7 +59,7 @@ rcmdsh(ahost, rport, locuser, remuser, cmd, rshprog) | |||
59 | } | 59 | } |
60 | 60 | ||
61 | /* Get a socketpair we'll use for stdin and stdout. */ | 61 | /* Get a socketpair we'll use for stdin and stdout. */ |
62 | if (socketpair(AF_UNIX, SOCK_STREAM, 0, sp) < 0) { | 62 | if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, sp) < 0) { |
63 | perror("rcmdsh: socketpair"); | 63 | perror("rcmdsh: socketpair"); |
64 | return(-1); | 64 | return(-1); |
65 | } | 65 | } |