Clarify why filters could be rejected with a proper message

This commit is contained in:
Andrea Mazzoleni 2015-05-30 13:18:16 +02:00
parent 615d393379
commit aef11798b0
3 changed files with 4 additions and 1 deletions

View file

@ -84,7 +84,7 @@ struct snapraid_filter* filter_alloc_file(int direction, const char* pattern)
filter->is_dir = 0;
}
/* a slash must be the first char, as we reject PATH/DIR/FILE */
/* a slash must be the first char, as we don't support PATH/FILE and PATH/DIR/ */
if (filter->pattern[0] != '/') {
/* LCOV_EXCL_START */
free(filter);