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

Diff for /src/usr.bin/ssh/session.c between version 1.74.2.3 and 1.74.2.4

version 1.74.2.3, 2001/11/15 00:15:19 version 1.74.2.4, 2001/12/03 00:36:34
Line 875 
Line 875 
                 child_set_env(&env, &envsize, "TZ", getenv("TZ"));                  child_set_env(&env, &envsize, "TZ", getenv("TZ"));
   
         /* Set custom environment options from RSA authentication. */          /* Set custom environment options from RSA authentication. */
         while (custom_environment) {          if (!options.use_login) {
                 struct envstring *ce = custom_environment;                  while (custom_environment) {
                 char *s = ce->s;                          struct envstring *ce = custom_environment;
                 int i;                          char *s = ce->s;
                 for (i = 0; s[i] != '=' && s[i]; i++);                          int i;
                 if (s[i] == '=') {                          for (i = 0; s[i] != '=' && s[i]; i++)
                         s[i] = 0;                                  ;
                         child_set_env(&env, &envsize, s, s + i + 1);                          if (s[i] == '=') {
                                   s[i] = 0;
                                   child_set_env(&env, &envsize, s, s + i + 1);
                           }
                           custom_environment = ce->next;
                           xfree(ce->s);
                           xfree(ce);
                 }                  }
                 custom_environment = ce->next;  
                 xfree(ce->s);  
                 xfree(ce);  
         }          }
   
         snprintf(buf, sizeof buf, "%.50s %d %d",          snprintf(buf, sizeof buf, "%.50s %d %d",

Legend:
Removed from v.1.74.2.3  
changed lines
  Added in v.1.74.2.4