[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.108 and 1.108.2.1

version 1.108, 2001/10/11 13:45:21 version 1.108.2.1, 2001/12/05 19:31:48
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.108  
changed lines
  Added in v.1.108.2.1