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

Diff for /src/usr.bin/sudo/Attic/sudo.c between version 1.4 and 1.5

version 1.4, 2000/03/27 03:44:39 version 1.5, 2000/04/28 23:17:43
Line 342 
Line 342 
             exit(0);              exit(0);
         }          }
   
         /* Set $HOME for `sudo -H' */  
         if ((sudo_mode & MODE_RESET_HOME) && runas_homedir)  
             (void) sudo_setenv("HOME", runas_homedir);  
   
         /* This *must* have been set if we got a match but... */          /* This *must* have been set if we got a match but... */
         if (safe_cmnd == NULL) {          if (safe_cmnd == NULL) {
             log_error(MSG_ONLY,              log_error(MSG_ONLY,
                 "internal error, cmnd_safe never got set for %s; %s",                  "internal error, safe_cmnd never got set for %s; %s",
                 user_cmnd,                  user_cmnd,
                 "please report this error at http://courtesan.com/sudo/bugs/");                  "please report this error at http://courtesan.com/sudo/bugs/");
         }          }
Line 383 
Line 379 
   
         /* Become specified user or root. */          /* Become specified user or root. */
         set_perms(PERM_RUNAS, sudo_mode);          set_perms(PERM_RUNAS, sudo_mode);
   
           /* Set $HOME for `sudo -H'.  Only valid at PERM_RUNAS. */
           if ((sudo_mode & MODE_RESET_HOME) && runas_homedir)
               (void) sudo_setenv("HOME", runas_homedir);
   
 #ifndef PROFILING  #ifndef PROFILING
         if ((sudo_mode & MODE_BACKGROUND) && fork() > 0)          if ((sudo_mode & MODE_BACKGROUND) && fork() > 0)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5