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

Diff for /src/usr.bin/ssh/sshlogin.c between version 1.34 and 1.35

version 1.34, 2019/06/28 13:35:04 version 1.35, 2020/10/18 11:32:02
Line 87 
Line 87 
         pos = (off_t)uid * sizeof(ll);          pos = (off_t)uid * sizeof(ll);
         r = lseek(fd, pos, SEEK_SET);          r = lseek(fd, pos, SEEK_SET);
         if (r == -1) {          if (r == -1) {
                 error("%s: lseek: %s", __func__, strerror(errno));                  error_f("lseek: %s", strerror(errno));
                 close(fd);                  close(fd);
                 return (0);                  return (0);
         }          }
         if (r != pos) {          if (r != pos) {
                 debug("%s: truncated lastlog", __func__);                  debug_f("truncated lastlog");
                 close(fd);                  close(fd);
                 return (0);                  return (0);
         }          }
Line 135 
Line 135 
                         r = sshbuf_putf(loginmsg, "Last login: %s from %s\r\n",                          r = sshbuf_putf(loginmsg, "Last login: %s from %s\r\n",
                             time_string, hostname);                              time_string, hostname);
                 if (r != 0)                  if (r != 0)
                         fatal("%s: buffer error: %s", __func__, ssh_err(r));                          fatal_fr(r, "sshbuf_putf");
         }          }
 }  }
   

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35