Skip to content

Commit

Permalink
Prevent removelist from deleting a fileless dir if it contains subdirs
Browse files Browse the repository at this point in the history
The presence of files in these subdirs is checked earlier by the program.
  • Loading branch information
kabachuha authored and irydacea committed Oct 15, 2020
1 parent 7f07f28 commit bc0aab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/campaignd/addon_utils.cpp
Expand Up @@ -178,7 +178,7 @@ bool data_apply_removelist(config& data, const config& removelist)
}
}

return data.has_child("file");
return data.has_child("file") || data.has_child("dir");
}

void data_apply_addlist(config& data, const config& addlist)
Expand Down

0 comments on commit bc0aab2

Please sign in to comment.