2
0
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:
Todd C. Miller
1994-11-08 01:38:44 +00:00
parent 46d361a446
commit fe8b92ba4d
2 changed files with 5 additions and 5 deletions

View File

@@ -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