summaryrefslogtreecommitdiffstats
path: root/serverloop.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-06-24 08:58:45 +0200
committerDarren Tucker <dtucker@zip.com.au>2006-06-24 08:58:45 +0200
commit03890e44cd4814c2a9909febe5130fef722c7f4b (patch)
tree715af6e358a4292e7118ef902fc23d3541aa6b44 /serverloop.c
parent - (dtucker) [configure.ac] Bug #1193: Define PASSWD_NEEDS_USERNAME on Solaris. (diff)
downloadopenssh-03890e44cd4814c2a9909febe5130fef722c7f4b.tar.xz
openssh-03890e44cd4814c2a9909febe5130fef722c7f4b.zip
- (dtucker) [serverloop.c] Get ifdef/ifndef the right way around for the bug
#1102 workaround.
Diffstat (limited to 'serverloop.c')
-rw-r--r--serverloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/serverloop.c b/serverloop.c
index c1eb28853..e370f63a3 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -391,7 +391,7 @@ process_input(fd_set *readset)
len = read(fdout, buf, sizeof(buf));
if (len < 0 && (errno == EINTR || errno == EAGAIN)) {
/* do nothing */
-#ifdef PTY_ZEROREAD
+#ifndef PTY_ZEROREAD
} else if (len <= 0) {
#else
} else if (len < 0 || (len == 0 && errno != 0)) {
@@ -408,7 +408,7 @@ process_input(fd_set *readset)
len = read(fderr, buf, sizeof(buf));
if (len < 0 && (errno == EINTR || errno == EAGAIN)) {
/* do nothing */
-#ifdef PTY_ZEROREAD
+#ifndef PTY_ZEROREAD
} else if (len <= 0) {
#else
} else if (len < 0 || (len == 0 && errno != 0)) {