[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.139 and 1.139.2.1

version 1.139, 2005/03/10 22:01:05 version 1.139.2.1, 2005/09/04 18:40:02
Line 693 
Line 693 
                         fwd.listen_host = cleanhostname(fwd.listen_host);                          fwd.listen_host = cleanhostname(fwd.listen_host);
                 } else {                  } else {
                         fwd.listen_port = a2port(fwd.listen_host);                          fwd.listen_port = a2port(fwd.listen_host);
                         fwd.listen_host = "";                          fwd.listen_host = NULL;
                 }                  }
                 if (fwd.listen_port == 0)                  if (fwd.listen_port == 0)
                         fatal("%.200s line %d: Badly formatted port number.",                          fatal("%.200s line %d: Badly formatted port number.",
Line 741 
Line 741 
   
         case oAddressFamily:          case oAddressFamily:
                 arg = strdelim(&s);                  arg = strdelim(&s);
                   if (!arg || *arg == '\0')
                           fatal("%s line %d: missing address family.",
                               filename, linenum);
                 intptr = &options->address_family;                  intptr = &options->address_family;
                 if (strcasecmp(arg, "inet") == 0)                  if (strcasecmp(arg, "inet") == 0)
                         value = AF_INET;                          value = AF_INET;
Line 791 
Line 794 
   
         case oControlMaster:          case oControlMaster:
                 intptr = &options->control_master;                  intptr = &options->control_master;
                 goto parse_yesnoask;                  arg = strdelim(&s);
                   if (!arg || *arg == '\0')
                           fatal("%.200s line %d: Missing ControlMaster argument.",
                               filename, linenum);
                   value = 0;      /* To avoid compiler warning... */
                   if (strcmp(arg, "yes") == 0 || strcmp(arg, "true") == 0)
                           value = SSHCTL_MASTER_YES;
                   else if (strcmp(arg, "no") == 0 || strcmp(arg, "false") == 0)
                           value = SSHCTL_MASTER_NO;
                   else if (strcmp(arg, "auto") == 0)
                           value = SSHCTL_MASTER_AUTO;
                   else if (strcmp(arg, "ask") == 0)
                           value = SSHCTL_MASTER_ASK;
                   else if (strcmp(arg, "autoask") == 0)
                           value = SSHCTL_MASTER_AUTO_ASK;
                   else
                           fatal("%.200s line %d: Bad ControlMaster argument.",
                               filename, linenum);
                   if (*activep && *intptr == -1)
                           *intptr = value;
                   break;
   
         case oHashKnownHosts:          case oHashKnownHosts:
                 intptr = &options->hash_known_hosts;                  intptr = &options->hash_known_hosts;
Line 814 
Line 837 
         /* Check that there is no garbage at end of line. */          /* Check that there is no garbage at end of line. */
         if ((arg = strdelim(&s)) != NULL && *arg != '\0') {          if ((arg = strdelim(&s)) != NULL && *arg != '\0') {
                 fatal("%.200s line %d: garbage at end of line; \"%.200s\".",                  fatal("%.200s line %d: garbage at end of line; \"%.200s\".",
                      filename, linenum, arg);                      filename, linenum, arg);
         }          }
         return 0;          return 0;
 }  }

Legend:
Removed from v.1.139  
changed lines
  Added in v.1.139.2.1