summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/net/rcmdsh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/rcmdsh.c b/src/lib/libc/net/rcmdsh.c
index 47b200ed68..fe49a5a21b 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.1 1996/08/22 20:11:20 millert Exp $ */ 1/* $OpenBSD: rcmdsh.c,v 1.2 1996/09/01 20:28:22 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)
9static char *rcsid = "$OpenBSD: rcmdsh.c,v 1.1 1996/08/22 20:11:20 millert Exp $"; 9static char *rcsid = "$OpenBSD: rcmdsh.c,v 1.2 1996/09/01 20:28:22 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>
@@ -69,7 +69,7 @@ rcmdsh(ahost, rport, locuser, remuser, cmd, rshprog)
69 * Child. We use sp[1] to be stdin/stdout, and close sp[0]. 69 * Child. We use sp[1] to be stdin/stdout, and close sp[0].
70 */ 70 */
71 (void) close(sp[0]); 71 (void) close(sp[0]);
72 if (dup2(sp[1], 0) < 0 || dup2(0, 1) < 0 || dup2(0, 2) < 0) { 72 if (dup2(sp[1], 0) < 0 || dup2(0, 1) < 0) {
73 perror("rcmdsh: dup2 failed"); 73 perror("rcmdsh: dup2 failed");
74 _exit(255); 74 _exit(255);
75 } 75 }