[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.89.2.5 and 1.89.2.6

version 1.89.2.5, 2002/06/22 07:23:17 version 1.89.2.6, 2002/06/26 18:22:35
Line 388 
Line 388 
         hints.ai_family = IPv4or6;          hints.ai_family = IPv4or6;
         hints.ai_socktype = SOCK_STREAM;          hints.ai_socktype = SOCK_STREAM;
         hints.ai_flags = (addr == NULL) ? AI_PASSIVE : 0;          hints.ai_flags = (addr == NULL) ? AI_PASSIVE : 0;
         snprintf(strport, sizeof strport, "%d", port);          snprintf(strport, sizeof strport, "%u", port);
         if ((gaierr = getaddrinfo(addr, strport, &hints, &aitop)) != 0)          if ((gaierr = getaddrinfo(addr, strport, &hints, &aitop)) != 0)
                 fatal("bad addr or host: %s (%s)",                  fatal("bad addr or host: %s (%s)",
                     addr ? addr : "<NULL>",                      addr ? addr : "<NULL>",
Line 404 
Line 404 
     const char *filename, int linenum)      const char *filename, int linenum)
 {  {
         char *cp, **charptr, *arg, *p;          char *cp, **charptr, *arg, *p;
         int *intptr, value;          int *intptr, value, i, n;
         ServerOpCodes opcode;          ServerOpCodes opcode;
         int i, n;  
   
         cp = line;          cp = line;
         arg = strdelim(&cp);          arg = strdelim(&cp);
Line 724 
Line 723 
                         if (options->num_allow_users >= MAX_ALLOW_USERS)                          if (options->num_allow_users >= MAX_ALLOW_USERS)
                                 fatal("%s line %d: too many allow users.",                                  fatal("%s line %d: too many allow users.",
                                     filename, linenum);                                      filename, linenum);
                         options->allow_users[options->num_allow_users++] = xstrdup(arg);                          options->allow_users[options->num_allow_users++] =
                               xstrdup(arg);
                 }                  }
                 break;                  break;
   
Line 733 
Line 733 
                         if (options->num_deny_users >= MAX_DENY_USERS)                          if (options->num_deny_users >= MAX_DENY_USERS)
                                 fatal( "%s line %d: too many deny users.",                                  fatal( "%s line %d: too many deny users.",
                                     filename, linenum);                                      filename, linenum);
                         options->deny_users[options->num_deny_users++] = xstrdup(arg);                          options->deny_users[options->num_deny_users++] =
                               xstrdup(arg);
                 }                  }
                 break;                  break;
   
Line 742 
Line 743 
                         if (options->num_allow_groups >= MAX_ALLOW_GROUPS)                          if (options->num_allow_groups >= MAX_ALLOW_GROUPS)
                                 fatal("%s line %d: too many allow groups.",                                  fatal("%s line %d: too many allow groups.",
                                     filename, linenum);                                      filename, linenum);
                         options->allow_groups[options->num_allow_groups++] = xstrdup(arg);                          options->allow_groups[options->num_allow_groups++] =
                               xstrdup(arg);
                 }                  }
                 break;                  break;
   
Line 880 
Line 882 
 void  void
 read_server_config(ServerOptions *options, const char *filename)  read_server_config(ServerOptions *options, const char *filename)
 {  {
         FILE *f;          int linenum, bad_options = 0;
         char line[1024];          char line[1024];
         int linenum;          FILE *f;
         int bad_options = 0;  
   
         f = fopen(filename, "r");          f = fopen(filename, "r");
         if (!f) {          if (!f) {

Legend:
Removed from v.1.89.2.5  
changed lines
  Added in v.1.89.2.6