mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Make set_perms() and restore_perms() return an error instead of
calling exit() on failure.
This commit is contained in:
@@ -463,15 +463,16 @@ init_envtables(void)
|
||||
return;
|
||||
}
|
||||
|
||||
int
|
||||
bool
|
||||
set_perms(int perm)
|
||||
{
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
bool
|
||||
restore_perms(void)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user