scheduler: fix bug that caused sticky files to always get deleted when file_delete_regexp mechanism used

This commit is contained in:
David Anderson 2013-12-18 16:33:14 -08:00
parent 4d738ab4fb
commit cbc419ccab
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ int do_file_delete_regex() {
bool found = false; bool found = false;
for (unsigned int j=0; j<file_delete_regex.size(); j++) { for (unsigned int j=0; j<file_delete_regex.size(); j++) {
regex_t& re = file_delete_regex[j]; regex_t& re = file_delete_regex[j];
if (regexec(&re, fi.name, 0, NULL, 0)) { if (!regexec(&re, fi.name, 0, NULL, 0)) {
g_reply->file_deletes.push_back(fi); g_reply->file_deletes.push_back(fi);
if (config.debug_client_files) { if (config.debug_client_files) {
log_messages.printf(MSG_NORMAL, log_messages.printf(MSG_NORMAL,