Skip to content

Commit

Permalink
imfile: remove state file on file delete fix
Browse files Browse the repository at this point in the history
The state file would remain in the working directory
after shutdown, even though deleteStateOnfileDelete is
set to "on" and the monitored file was removed.

Fixes #5258
  • Loading branch information
Cropi committed Nov 3, 2023
1 parent a6da0b0 commit eadb0b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/imfile/imfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,7 @@ fs_node_destroy(fs_node_t *const node)
DBGPRINTF("node destroy: %p edges:\n", node);

for(edge = node->edges ; edge != NULL ; ) {
detect_updates(edge);
fs_node_destroy(edge->node);
fs_edge_t *const toDel = edge;
edge = edge->next;
Expand Down

0 comments on commit eadb0b6

Please sign in to comment.