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

Diff for /src/usr.bin/ssh/auth-options.c between version 1.66 and 1.67

version 1.66, 2015/04/22 01:24:01 version 1.67, 2015/05/01 03:20:54
Line 206 
Line 206 
                         goto next_option;                          goto next_option;
                 }                  }
                 cp = "environment=\"";                  cp = "environment=\"";
                 if (options.permit_user_env &&                  if (strncasecmp(opts, cp, strlen(cp)) == 0) {
                     strncasecmp(opts, cp, strlen(cp)) == 0) {  
                         char *s;                          char *s;
                         struct envstring *new_envstring;                          struct envstring *new_envstring;
   
Line 233 
Line 232 
                                 goto bad_option;                                  goto bad_option;
                         }                          }
                         s[i] = '\0';                          s[i] = '\0';
                         auth_debug_add("Adding to environment: %.900s", s);  
                         debug("Adding to environment: %.900s", s);  
                         opts++;                          opts++;
                         new_envstring = xcalloc(1, sizeof(struct envstring));                          if (options.permit_user_env) {
                         new_envstring->s = s;                                  auth_debug_add("Adding to environment: "
                         new_envstring->next = custom_environment;                                      "%.900s", s);
                         custom_environment = new_envstring;                                  debug("Adding to environment: %.900s", s);
                                   new_envstring = xcalloc(1,
                                       sizeof(*new_envstring));
                                   new_envstring->s = s;
                                   new_envstring->next = custom_environment;
                                   custom_environment = new_envstring;
                                   s = NULL;
                           }
                           free(s);
                         goto next_option;                          goto next_option;
                 }                  }
                 cp = "from=\"";                  cp = "from=\"";

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67