-/* $OpenBSD: rshrcmd.c,v 1.5 1996/09/07 03:14:27 millert Exp $ */
+/* $OpenBSD: rshrcmd.c,v 1.6 1996/09/07 03:15:52 millert Exp $ */
/*
#ifndef lint
static char RCSid[] =
-"$OpenBSD: rshrcmd.c,v 1.5 1996/09/07 03:14:27 millert Exp $";
+"$OpenBSD: rshrcmd.c,v 1.6 1996/09/07 03:15:52 millert Exp $";
#endif
#include "defs.h"
/* child. we use sp[1] to be stdin/stdout, and close
sp[0]. */
(void) close(sp[0]);
- if (dup2(sp[1], 0) < 0 || dup2(0,1) < 0 || dup2(0, 2) < 0) {
+ if (dup2(sp[1], 0) < 0 || dup2(0, 1) < 0) {
error("dup2 failed: %s.", SYSERR);
_exit(255);
}