Check restore_perms() return value in all cases, pushing the

return value back up the call stack.
This commit is contained in:
Todd C. Miller
2015-06-25 11:12:36 -06:00
parent c5ed416a70
commit 81f94499bf
10 changed files with 154 additions and 86 deletions

View File

@@ -28,6 +28,7 @@
#define TS_MISSING 2
#define TS_NOFILE 3
#define TS_ERROR 4
#define TS_FATAL 5
/*
* Time stamps are now stored in a single file which contains multiple
@@ -61,7 +62,7 @@ struct timestamp_entry {
};
bool already_lectured(int status);
bool update_timestamp(struct passwd *pw);
int update_timestamp(struct passwd *pw);
int build_timestamp(struct passwd *pw);
int timestamp_status(struct passwd *pw);