Primitive set/restore permissions. Will be replaced by a push/pop

model.
This commit is contained in:
Todd C. Miller
2010-04-10 10:34:37 -04:00
parent 711b8d1c04
commit 744eae82e7
6 changed files with 82 additions and 35 deletions

View File

@@ -257,7 +257,7 @@ sudo_file_lookup(nss, validated, pwflag)
SET(validated, VALIDATE_NOT_OK);
CLR(validated, VALIDATE_OK);
}
set_perms(PERM_ROOT);
restore_perms();
return(validated);
}