[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.355 and 1.356

version 1.355, 2010/11/29 23:45:51 version 1.356, 2011/01/06 22:23:53
Line 213 
Line 213 
 main(int ac, char **av)  main(int ac, char **av)
 {  {
         int i, r, opt, exit_status, use_syslog;          int i, r, opt, exit_status, use_syslog;
         char *p, *cp, *line, *argv0, buf[MAXPATHLEN];          char *p, *cp, *line, *argv0, buf[MAXPATHLEN], *host_arg;
         struct stat st;          struct stat st;
         struct passwd *pw;          struct passwd *pw;
         int dummy, timeout_ms;          int dummy, timeout_ms;
Line 678 
Line 678 
                 options.port = sp ? ntohs(sp->s_port) : SSH_DEFAULT_PORT;                  options.port = sp ? ntohs(sp->s_port) : SSH_DEFAULT_PORT;
         }          }
   
           /* preserve host name given on command line for %n expansion */
           host_arg = host;
         if (options.hostname != NULL) {          if (options.hostname != NULL) {
                 host = percent_expand(options.hostname,                  host = percent_expand(options.hostname,
                     "h", host, (char *)NULL);                      "h", host, (char *)NULL);
Line 692 
Line 694 
                 debug3("expanding LocalCommand: %s", options.local_command);                  debug3("expanding LocalCommand: %s", options.local_command);
                 cp = options.local_command;                  cp = options.local_command;
                 options.local_command = percent_expand(cp, "d", pw->pw_dir,                  options.local_command = percent_expand(cp, "d", pw->pw_dir,
                     "h", host, "l", thishost, "n", host, "r", options.user,                      "h", host, "l", thishost, "n", host_arg, "r", options.user,
                     "p", buf, "u", pw->pw_name, (char *)NULL);                      "p", buf, "u", pw->pw_name, (char *)NULL);
                 debug3("expanded LocalCommand: %s", options.local_command);                  debug3("expanded LocalCommand: %s", options.local_command);
                 xfree(cp);                  xfree(cp);

Legend:
Removed from v.1.355  
changed lines
  Added in v.1.356