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

Diff for /src/usr.bin/ssh/ssh.c between version 1.303 and 1.304

version 1.303, 2007/09/04 11:15:55 version 1.304, 2007/10/29 01:55:04
Line 643 
Line 643 
         }          }
   
         if (options.proxy_command != NULL &&          if (options.proxy_command != NULL &&
             strcmp(options.proxy_command, "none") == 0)              strcmp(options.proxy_command, "none") == 0) {
                   xfree(options.proxy_command);
                 options.proxy_command = NULL;                  options.proxy_command = NULL;
           }
         if (options.control_path != NULL &&          if (options.control_path != NULL &&
             strcmp(options.control_path, "none") == 0)              strcmp(options.control_path, "none") == 0) {
                   xfree(options.control_path);
                 options.control_path = NULL;                  options.control_path = NULL;
           }
   
         if (options.control_path != NULL) {          if (options.control_path != NULL) {
                 char thishost[NI_MAXHOST];                  char thishost[NI_MAXHOST];
Line 657 
Line 661 
                 snprintf(buf, sizeof(buf), "%d", options.port);                  snprintf(buf, sizeof(buf), "%d", options.port);
                 cp = tilde_expand_filename(options.control_path,                  cp = tilde_expand_filename(options.control_path,
                     original_real_uid);                      original_real_uid);
                   xfree(options.control_path);
                 options.control_path = percent_expand(cp, "p", buf, "h", host,                  options.control_path = percent_expand(cp, "p", buf, "h", host,
                     "r", options.user, "l", thishost, (char *)NULL);                      "r", options.user, "l", thishost, (char *)NULL);
                 xfree(cp);                  xfree(cp);

Legend:
Removed from v.1.303  
changed lines
  Added in v.1.304