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

Diff for /src/usr.bin/ssh/ssh-add.c between version 1.139 and 1.140

version 1.139, 2019/06/06 05:13:13 version 1.140, 2019/06/28 13:35:04
Line 195 
Line 195 
         if (strcmp(filename, "-") == 0) {          if (strcmp(filename, "-") == 0) {
                 fd = STDIN_FILENO;                  fd = STDIN_FILENO;
                 filename = "(stdin)";                  filename = "(stdin)";
         } else if ((fd = open(filename, O_RDONLY)) < 0) {          } else if ((fd = open(filename, O_RDONLY)) == -1) {
                 perror(filename);                  perror(filename);
                 return -1;                  return -1;
         }          }
Line 718 
Line 718 
                 for (i = 0; default_files[i]; i++) {                  for (i = 0; default_files[i]; i++) {
                         snprintf(buf, sizeof(buf), "%s/%s", pw->pw_dir,                          snprintf(buf, sizeof(buf), "%s/%s", pw->pw_dir,
                             default_files[i]);                              default_files[i]);
                         if (stat(buf, &st) < 0)                          if (stat(buf, &st) == -1)
                                 continue;                                  continue;
                         if (do_file(agent_fd, deleting, key_only, buf,                          if (do_file(agent_fd, deleting, key_only, buf,
                             qflag) == -1)                              qflag) == -1)

Legend:
Removed from v.1.139  
changed lines
  Added in v.1.140