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

Diff for /src/usr.bin/su/su.c between version 1.68 and 1.69

version 1.68, 2015/10/23 03:44:59 version 1.69, 2015/10/24 19:47:44
Line 215 
Line 215 
                 fprintf(stderr, "Login incorrect\n");                  fprintf(stderr, "Login incorrect\n");
         }          }
   
         if (pledge("stdio rpath exec id", NULL) == -1)  
                 err(1, "pledge");  
   
         if (!altshell) {          if (!altshell) {
                 if (asme) {                  if (asme) {
                         /* if asme and non-std target shell, must be root */                          /* if asme and non-std target shell, must be root */
Line 285 
Line 282 
                 if (setenv("SHELL", shell, 1) == -1)                  if (setenv("SHELL", shell, 1) == -1)
                         auth_err(as, 1, "unable to set environment");                          auth_err(as, 1, "unable to set environment");
         }          }
   
           if (pledge("stdio rpath exec id", NULL) == -1)
                   err(1, "pledge");
   
         np = *argv ? argv : argv - 1;          np = *argv ? argv : argv - 1;
         if (iscsh == YES) {          if (iscsh == YES) {

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69