be_root/be_user is now down in sudo_realpath()
This commit is contained in:
@@ -375,17 +375,11 @@ static void send_mail()
|
||||
(void) bzero((char *)(&action), sizeof(action));
|
||||
#endif /* POSIX_SIGNALS */
|
||||
|
||||
/* become root for find_path() */
|
||||
be_root();
|
||||
|
||||
if ((mailer = find_path(mailer)) == NULL) {
|
||||
(void) fprintf(stderr, "%s: mailer (%s) not found\n", Argv[0], mailer);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* relinquish root */
|
||||
be_user();
|
||||
|
||||
/* catch children as they die */
|
||||
#ifdef POSIX_SIGNALS
|
||||
action.sa_handler = reapchild;
|
||||
|
Reference in New Issue
Block a user