[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.158 and 1.159

version 1.158, 2006/07/19 13:07:10 version 1.159, 2006/07/21 12:43:36
Line 106 
Line 106 
         options->authorized_keys_file2 = NULL;          options->authorized_keys_file2 = NULL;
         options->num_accept_env = 0;          options->num_accept_env = 0;
         options->permit_tun = -1;          options->permit_tun = -1;
           options->num_permitted_opens = -1;
         options->adm_forced_command = NULL;          options->adm_forced_command = NULL;
 }  }
   
Line 1118 
Line 1119 
                         fatal("%s line %d: missing PermitOpen specification",                          fatal("%s line %d: missing PermitOpen specification",
                             filename, linenum);                              filename, linenum);
                 if (strcmp(arg, "any") == 0) {                  if (strcmp(arg, "any") == 0) {
                         if (*activep)                          if (*activep) {
                                 channel_clear_adm_permitted_opens();                                  channel_clear_adm_permitted_opens();
                                   options->num_permitted_opens = 0;
                           }
                         break;                          break;
                 }                  }
                 p = hpdelim(&arg);                  for (; arg != NULL && *arg != '\0'; arg = strdelim(&cp)) {
                 if (p == NULL)                          p = hpdelim(&arg);
                         fatal("%s line %d: missing host in PermitOpen",                          if (p == NULL)
                             filename, linenum);                                  fatal("%s line %d: missing host in PermitOpen",
                 p = cleanhostname(p);                                      filename, linenum);
                 if (arg == NULL || (port = a2port(arg)) == 0)                          p = cleanhostname(p);
                         fatal("%s line %d: bad port number in PermitOpen",                          if (arg == NULL || (port = a2port(arg)) == 0)
                             filename, linenum);                                  fatal("%s line %d: bad port number in "
                 if (*activep)                                      "PermitOpen", filename, linenum);
                         channel_add_adm_permitted_opens(p, port);                          if (*activep && options->num_permitted_opens == -1) {
                                   channel_clear_adm_permitted_opens();
                                   options->num_permitted_opens =
                                       channel_add_adm_permitted_opens(p, port);
                           }
                   }
                 break;                  break;
   
         case sForceCommand:          case sForceCommand:

Legend:
Removed from v.1.158  
changed lines
  Added in v.1.159