Subject: uucpd.c fix
To: None <current-users@NetBSD.ORG>
From: D'Arcy J.M. Cain <darcy@druid.com>
List: current-users
Date: 11/21/1996 07:26:42
I know this is less used these days but uucp is still useful. When
doing uucp over tcp/ip the daemon has problems with the initial login
because of end of line confusion. The following diffs correct this.
*** ../src.original/./libexec/uucpd/uucpd.c Mon Nov 18 18:01:17 1996
--- ./libexec/uucpd/uucpd.c Tue Jun 13 06:22:29 1995
***************
*** 211,220 ****
if (read(0, &c, 1) <= 0)
return(-1);
c &= 0177;
! if (c == '\n' || c == '\r') {
*p = '\0';
return(0);
}
*p++ = c;
}
return(-1);
--- 211,221 ----
if (read(0, &c, 1) <= 0)
return(-1);
c &= 0177;
! if (c == '\r') {
*p = '\0';
return(0);
}
+ if (c != '\n')
*p++ = c;
}
return(-1);
--
D'Arcy J.M. Cain | Democracy is three wolves
darcy@{druid.com|vex.net} | and a sheep voting on
+1 416 943 5281 (DoD#0082) (eNTP) | what's for dinner.
-- http://www.druid.com/darcy --