Skip to content

Commit

Permalink
Merge pull request #3307 from jvymazal/imfile_superfluous_error
Browse files Browse the repository at this point in the history
disable file vs directory error on symlinks
  • Loading branch information
rgerhards committed Dec 2, 2018
2 parents 7c5f51b + 31350bc commit 111cc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/imfile/imfile.c
Expand Up @@ -869,7 +869,7 @@ poll_tree(fs_edge_t *const chld)
"directory - ignored", file);
continue;
}
if(chld->is_file != is_file) {
if(!issymlink && (chld->is_file != is_file)) {
LogMsg(0, RS_RET_ERR, LOG_WARNING,
"imfile: '%s' is %s but %s expected - ignored",
file, (is_file) ? "FILE" : "DIRECTORY",
Expand Down

0 comments on commit 111cc04

Please sign in to comment.