[BACK]Return to authfd.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/authfd.c between version 1.37 and 1.38

version 1.37, 2001/03/04 17:42:27 version 1.38, 2001/03/06 00:33:03
Line 118 
Line 118 
         len = 4;          len = 4;
         while (len > 0) {          while (len > 0) {
                 l = read(auth->fd, buf + 4 - len, len);                  l = read(auth->fd, buf + 4 - len, len);
                   if (l == -1 && (errno == EAGAIN || errno == EINTR))
                           continue;
                 if (l <= 0) {                  if (l <= 0) {
                         error("Error reading response length from authentication socket.");                          error("Error reading response length from authentication socket.");
                         return 0;                          return 0;
Line 137 
Line 139 
                 if (l > sizeof(buf))                  if (l > sizeof(buf))
                         l = sizeof(buf);                          l = sizeof(buf);
                 l = read(auth->fd, buf, l);                  l = read(auth->fd, buf, l);
                   if (l == -1 && (errno == EAGAIN || errno == EINTR))
                           continue;
                 if (l <= 0) {                  if (l <= 0) {
                         error("Error reading response from authentication socket.");                          error("Error reading response from authentication socket.");
                         return 0;                          return 0;

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38