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

Diff for /src/usr.bin/ssh/ssh-keyscan.c between version 1.155 and 1.156

version 1.155, 2024/01/11 01:45:36 version 1.156, 2024/04/30 15:40:43
Line 826 
Line 826 
                 if (argv[j] == NULL)                  if (argv[j] == NULL)
                         fp = stdin;                          fp = stdin;
                 else if ((fp = fopen(argv[j], "r")) == NULL)                  else if ((fp = fopen(argv[j], "r")) == NULL)
                         fatal("%s: %s: %s", __progname, argv[j], strerror(errno));                          fatal("%s: %s: %s", __progname,
                               fp == stdin ? "<stdin>" : argv[j], strerror(errno));
   
                 while (getline(&line, &linesize, fp) != -1) {                  while (getline(&line, &linesize, fp) != -1) {
                         /* Chomp off trailing whitespace and comments */                          /* Chomp off trailing whitespace and comments */
Line 848 
Line 849 
                 }                  }
   
                 if (ferror(fp))                  if (ferror(fp))
                         fatal("%s: %s: %s", __progname, argv[j], strerror(errno));                          fatal("%s: %s: %s", __progname,
                               fp == stdin ? "<stdin>" : argv[j], strerror(errno));
   
                 fclose(fp);                  if (fp != stdin)
                           fclose(fp);
         }          }
         free(line);          free(line);
   

Legend:
Removed from v.1.155  
changed lines
  Added in v.1.156