Skip to content

Commit

Permalink
acl: Fix checking whether global acl-file has changed
Browse files Browse the repository at this point in the history
We always assumed that it was changed and re-read it.
  • Loading branch information
sirainen committed Oct 9, 2017
1 parent 67c90c9 commit ba6c321
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/plugins/acl/acl-global-file.c
Expand Up @@ -149,6 +149,15 @@ static int acl_global_file_read(struct acl_global_file *file)
file->path, i_stream_get_error(input));
ret = -1;
}
if (ret == 0) {
const struct stat *st;

if (i_stream_stat(input, TRUE, &st) < 0) {
i_error("Couldn't stat global ACL file %s: %s",
file->path, i_stream_get_error(input));
}
file->prev_st = *st;
}
i_stream_destroy(&input);

/* sort all parsed rights */
Expand Down

0 comments on commit ba6c321

Please sign in to comment.