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

Diff for /src/usr.bin/ssh/servconf.c between version 1.267 and 1.268

version 1.267, 2015/05/01 04:17:51 version 1.268, 2015/05/01 07:08:08
Line 973 
Line 973 
                 if ((value = convtime(arg)) == -1)                  if ((value = convtime(arg)) == -1)
                         fatal("%s line %d: invalid time value.",                          fatal("%s line %d: invalid time value.",
                             filename, linenum);                              filename, linenum);
                 if (*intptr == -1)                  if (*activep && *intptr == -1)
                         *intptr = value;                          *intptr = value;
                 break;                  break;
   
Line 1551 
Line 1551 
                 if (value == -1)                  if (value == -1)
                         fatal("%s line %d: Bad yes/point-to-point/ethernet/"                          fatal("%s line %d: Bad yes/point-to-point/ethernet/"
                             "no argument: %s", filename, linenum, arg);                              "no argument: %s", filename, linenum, arg);
                 if (*intptr == -1)                  if (*activep && *intptr == -1)
                         *intptr = value;                          *intptr = value;
                 break;                  break;
   
Line 1690 
Line 1690 
                 break;                  break;
   
         case sAuthenticationMethods:          case sAuthenticationMethods:
                 if (*activep && options->num_auth_methods == 0) {                  if (options->num_auth_methods == 0) {
                         while ((arg = strdelim(&cp)) && *arg != '\0') {                          while ((arg = strdelim(&cp)) && *arg != '\0') {
                                 if (options->num_auth_methods >=                                  if (options->num_auth_methods >=
                                     MAX_AUTH_METHODS)                                      MAX_AUTH_METHODS)
Line 1701 
Line 1701 
                                         fatal("%s line %d: invalid "                                          fatal("%s line %d: invalid "
                                             "authentication method list.",                                              "authentication method list.",
                                             filename, linenum);                                              filename, linenum);
                                   if (!*activep)
                                           continue;
                                 options->auth_methods[                                  options->auth_methods[
                                     options->num_auth_methods++] = xstrdup(arg);                                      options->num_auth_methods++] = xstrdup(arg);
                         }                          }
Line 1710 
Line 1712 
         case sStreamLocalBindMask:          case sStreamLocalBindMask:
                 arg = strdelim(&cp);                  arg = strdelim(&cp);
                 if (!arg || *arg == '\0')                  if (!arg || *arg == '\0')
                         fatal("%s line %d: missing StreamLocalBindMask argument.",                          fatal("%s line %d: missing StreamLocalBindMask "
                             filename, linenum);                              "argument.", filename, linenum);
                 /* Parse mode in octal format */                  /* Parse mode in octal format */
                 value = strtol(arg, &p, 8);                  value = strtol(arg, &p, 8);
                 if (arg == p || value < 0 || value > 0777)                  if (arg == p || value < 0 || value > 0777)
                         fatal("%s line %d: Bad mask.", filename, linenum);                          fatal("%s line %d: Bad mask.", filename, linenum);
                 options->fwd_opts.streamlocal_bind_mask = (mode_t)value;                  if (*activep)
                           options->fwd_opts.streamlocal_bind_mask = (mode_t)value;
                 break;                  break;
   
         case sStreamLocalBindUnlink:          case sStreamLocalBindUnlink:

Legend:
Removed from v.1.267  
changed lines
  Added in v.1.268