[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.332 and 1.333

version 1.332, 2020/07/05 23:59:45 version 1.333, 2020/07/17 07:09:24
Line 650 
Line 650 
                         if (r == (negate ? 1 : 0))                          if (r == (negate ? 1 : 0))
                                 this_result = result = 0;                                  this_result = result = 0;
                 } else if (strcasecmp(attrib, "exec") == 0) {                  } else if (strcasecmp(attrib, "exec") == 0) {
                         char *conn_hash_hex;                          char *conn_hash_hex, *keyalias;
   
                         if (gethostname(thishost, sizeof(thishost)) == -1)                          if (gethostname(thishost, sizeof(thishost)) == -1)
                                 fatal("gethostname: %s", strerror(errno));                                  fatal("gethostname: %s", strerror(errno));
Line 661 
Line 661 
                             (unsigned long long)pw->pw_uid);                              (unsigned long long)pw->pw_uid);
                         conn_hash_hex = ssh_connection_hash(thishost, host,                          conn_hash_hex = ssh_connection_hash(thishost, host,
                            portstr, ruser);                             portstr, ruser);
                           keyalias = options->host_key_alias ?
                               options->host_key_alias : host;
   
                         cmd = percent_expand(arg,                          cmd = percent_expand(arg,
                             "C", conn_hash_hex,                              "C", conn_hash_hex,
                             "L", shorthost,                              "L", shorthost,
                             "d", pw->pw_dir,                              "d", pw->pw_dir,
                             "h", host,                              "h", host,
                               "k", keyalias,
                             "l", thishost,                              "l", thishost,
                             "n", original_host,                              "n", original_host,
                             "p", portstr,                              "p", portstr,

Legend:
Removed from v.1.332  
changed lines
  Added in v.1.333