mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Fix timestamp removal with -k/-K
This commit is contained in:
parent
e324082d5c
commit
b89980ac6e
@ -647,7 +647,7 @@ remove_timestamp(int remove)
|
|||||||
|
|
||||||
status = timestamp_status(timestampdir, timestampfile, user_name,
|
status = timestamp_status(timestampdir, timestampfile, user_name,
|
||||||
TS_REMOVE);
|
TS_REMOVE);
|
||||||
if (status == TS_OLD || status == TS_CURRENT) {
|
if (status != TS_MISSING && status != TS_ERROR) {
|
||||||
path = timestampfile ? timestampfile : timestampdir;
|
path = timestampfile ? timestampfile : timestampdir;
|
||||||
if (remove) {
|
if (remove) {
|
||||||
if (timestampfile)
|
if (timestampfile)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user