diff options
author | Sheldon Hearn <sheldonh@FreeBSD.org> | 2001-07-26 11:02:39 +0000 |
---|---|---|
committer | Sheldon Hearn <sheldonh@FreeBSD.org> | 2001-07-26 11:02:39 +0000 |
commit | e1b4d8d0746069292d84708b0e11b17a7e1ef5e0 (patch) | |
tree | bd2ac2627dbeab7d3427432bb98d2c73085b61c1 /libexec/rexecd | |
parent | 8155f5e200803441caa6e1bba5d9fa1f836d232f (diff) | |
download | src-test2-e1b4d8d0746069292d84708b0e11b17a7e1ef5e0.tar.gz src-test2-e1b4d8d0746069292d84708b0e11b17a7e1ef5e0.zip |
Notes
Diffstat (limited to 'libexec/rexecd')
-rw-r--r-- | libexec/rexecd/rexecd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rexecd/rexecd.c b/libexec/rexecd/rexecd.c index f820b90396f5..57bb14c29438 100644 --- a/libexec/rexecd/rexecd.c +++ b/libexec/rexecd/rexecd.c @@ -237,7 +237,7 @@ doit(f, fromp) syslog(LOG_INFO, "login from %s as %s", remote, user); - (void) write(2, "\0", 1); + (void) write(STDERR_FILENO, "\0", 1); if (port) { (void) pipe(pv); pid = fork(); @@ -314,7 +314,7 @@ error(fmt, a1, a2, a3) buf[0] = 1; (void) snprintf(buf+1, sizeof(buf) - 1, fmt, a1, a2, a3); - (void) write(2, buf, strlen(buf)); + (void) write(STDERR_FILENO, buf, strlen(buf)); } void @@ -326,7 +326,7 @@ getstr(buf, cnt, err) char c; do { - if (read(0, &c, 1) != 1) + if (read(STDIN_FILENO, &c, 1) != 1) exit(1); *buf++ = c; if (--cnt == 0) { |