Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/rexecd Fix thinko with last commit.
details: https://anonhg.NetBSD.org/src/rev/e1668fe53ca2
branches: trunk
changeset: 572705:e1668fe53ca2
user: ginsbach <ginsbach%NetBSD.org@localhost>
date: Mon Jan 10 19:01:09 2005 +0000
description:
Fix thinko with last commit.
diffstat:
libexec/rexecd/rexecd.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 037d1b2ed40c -r e1668fe53ca2 libexec/rexecd/rexecd.c
--- a/libexec/rexecd/rexecd.c Mon Jan 10 18:03:37 2005 +0000
+++ b/libexec/rexecd/rexecd.c Mon Jan 10 19:01:09 2005 +0000
@@ -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 @@
#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 @@
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 @@
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");
Home |
Main Index |
Thread Index |
Old Index