mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Fixed directories exclusion.
This commit is contained in:
parent
7ee0c0f5ef
commit
97b0464d75
3 changed files with 8 additions and 5 deletions
5
HISTORY
5
HISTORY
|
|
@ -1,6 +1,11 @@
|
|||
SnapRAID HISTORY
|
||||
================
|
||||
|
||||
1.11 2012/7
|
||||
===========
|
||||
* Fixed again directories inclusion. Exclusion rules for directories were
|
||||
ignored.
|
||||
|
||||
1.10 2012/6
|
||||
===========
|
||||
* Fixed directory inclusion, in case the last rule is an "include" one.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_PREREQ([2.65])
|
||||
AC_INIT([snapraid], [1.10], [], [], [http://snapraid.sourceforge.net])
|
||||
AC_INIT([snapraid], [1.11], [], [], [http://snapraid.sourceforge.net])
|
||||
AM_INIT_AUTOMAKE([foreign no-dependencies -Wall])
|
||||
AC_CONFIG_SRCDIR([snapraid.c])
|
||||
AC_CONFIG_HEADER([config.h])
|
||||
|
|
|
|||
6
elem.c
6
elem.c
|
|
@ -163,12 +163,10 @@ static int filter_element(tommy_list* filterlist, const char* sub, int is_dir)
|
|||
ret = filter_recurse(filter, sub, is_dir);
|
||||
if (ret > 0) {
|
||||
/* include the file */
|
||||
direction = 1;
|
||||
break;
|
||||
return 0;
|
||||
} else if (ret < 0) {
|
||||
/* exclude the file */
|
||||
direction = -1;
|
||||
break;
|
||||
return -1;
|
||||
} else {
|
||||
/* default is opposite of the last filter */
|
||||
direction = -filter->direction;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue