Skip to content
Snippets Groups Projects
Commit cf51b912 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix the (reversed) trash can entry expiration date logic

parent 2f621498
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ BOOL trashcan2(scfg_t* cfg, const char* str1, const char* str2, const char* name
return FALSE;
if(trash != NULL) {
parse_trash_details(details, trash);
if(trash->expires && trash->expires >= time(NULL))
if(trash->expires && trash->expires <= time(NULL))
return FALSE;
}
return TRUE;
......@@ -100,7 +100,7 @@ BOOL trash_in_list(const char* str1, const char* str2, str_list_t list, struct t
return FALSE;
if(trash != NULL) {
parse_trash_details(details, trash);
if(trash->expires && trash->expires >= time(NULL))
if(trash->expires && trash->expires <= time(NULL))
return FALSE;
}
return TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment