diff options
| author | ginsbach <ginsbach@NetBSD.org> | 2005-01-10 19:01:09 +0000 |
|---|---|---|
| committer | ginsbach <ginsbach@NetBSD.org> | 2005-01-10 19:01:09 +0000 |
| commit | e793dd138a10d0cf36fd0b6fadf254e04ce427ae (patch) | |
| tree | 3b09402f9fcd28fb06df712423923922b41d14c4 /libexec/rexecd | |
| parent | e38333f8c4f179257db8312bf9c9cf9dd6740cfe (diff) | |
Fix thinko with last commit.
Diffstat (limited to 'libexec/rexecd')
| -rw-r--r-- | libexec/rexecd/rexecd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/rexecd/rexecd.c b/libexec/rexecd/rexecd.c index b97fe5b7b7a..221be6530a8 100644 --- a/libexec/rexecd/rexecd.c +++ b/libexec/rexecd/rexecd.c @@ -1,4 +1,4 @@ -/* $NetBSD: rexecd.c,v 1.19 2005/01/08 03:14:02 ginsbach Exp $ */ +/* $NetBSD: rexecd.c,v 1.20 2005/01/10 19:01:09 ginsbach Exp $ */ /* * Copyright (c) 1983, 1993 @@ -36,7 +36,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\ #if 0 static char sccsid[] = "from: @(#)rexecd.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: rexecd.c,v 1.19 2005/01/08 03:14:02 ginsbach Exp $"); +__RCSID("$NetBSD: rexecd.c,v 1.20 2005/01/10 19:01:09 ginsbach Exp $"); #endif #endif /* not lint */ @@ -103,7 +103,7 @@ main(int argc, char *argv[]) if (getpeername(0, (struct sockaddr *)&from, &fromlen) < 0) err(1, "getpeername"); - doit(0, (struct sockaddr *)&from); + doit(STDIN_FILENO, (struct sockaddr *)&from); exit(0); } @@ -131,7 +131,7 @@ doit(int f, struct sockaddr *fromp) port = 0; for (;;) { char c; - if (read(f, &c, STDIN_FILENO) != 1) { + if (read(f, &c, 1) != 1) { if (dolog) syslog(LOG_ERR, "initial read failed"); |
