mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
be_* -> setperms()
This commit is contained in:
4
parse.c
4
parse.c
@@ -532,7 +532,7 @@ int validate()
|
||||
int i, return_code;
|
||||
|
||||
/* become root */
|
||||
be_root();
|
||||
set_perms(PERM_ROOT);
|
||||
|
||||
if ((sudoers_fp = fopen(_PATH_SUDO_SUDOERS, "r")) == NULL) {
|
||||
perror(_PATH_SUDO_SUDOERS);
|
||||
@@ -558,7 +558,7 @@ int validate()
|
||||
(void) fclose(sudoers_fp);
|
||||
|
||||
/* relinquish root */
|
||||
be_user();
|
||||
set_perms(PERM_USER);
|
||||
|
||||
/*
|
||||
* if a parsing error occurred, set return_code accordingly
|
||||
|
Reference in New Issue
Block a user