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

Diff for /src/usr.bin/ssh/readconf.c between version 1.342 and 1.343

version 1.342, 2020/11/15 22:34:58 version 1.343, 2020/11/30 05:36:39
Line 1885 
Line 1885 
     int flags, int *activep, int *want_final_pass, int depth)      int flags, int *activep, int *want_final_pass, int depth)
 {  {
         FILE *f;          FILE *f;
         char *line = NULL;          char *cp, *line = NULL;
         size_t linesize = 0;          size_t linesize = 0;
         int linenum;          int linenum;
         int bad_options = 0;          int bad_options = 0;
Line 1916 
Line 1916 
         while (getline(&line, &linesize, f) != -1) {          while (getline(&line, &linesize, f) != -1) {
                 /* Update line number counter. */                  /* Update line number counter. */
                 linenum++;                  linenum++;
                   /*
                    * Trim out comments and strip whitespace.
                    * NB - preserve newlines, they are needed to reproduce
                    * line numbers later for error messages.
                    */
                   if ((cp = strchr(line, '#')) != NULL)
                           *cp = '\0';
                 if (process_config_line_depth(options, pw, host, original_host,                  if (process_config_line_depth(options, pw, host, original_host,
                     line, filename, linenum, activep, flags, want_final_pass,                      line, filename, linenum, activep, flags, want_final_pass,
                     depth) != 0)                      depth) != 0)

Legend:
Removed from v.1.342  
changed lines
  Added in v.1.343