Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a comment.
[rsync/rsync.git]
/
exclude.c
diff --git
a/exclude.c
b/exclude.c
index
063f733
..
252affe
100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-214,8
+214,8
@@
static void report_exclude_result(char const *name,
/*
/*
- * Return
true if file NAME
is defined to be excluded by the specified
- * exclude list.
+ * Return
-1 if file "name"
is defined to be excluded by the specified
+ * exclude list
, 1 if it is included, and 0 if it was not matched
.
*/
int check_exclude(struct exclude_list_struct *listp, char *name, int name_is_dir)
{
*/
int check_exclude(struct exclude_list_struct *listp, char *name, int name_is_dir)
{
@@
-225,7
+225,7
@@
int check_exclude(struct exclude_list_struct *listp, char *name, int name_is_dir
if (check_one_exclude(name, ent, name_is_dir)) {
report_exclude_result(name, ent, name_is_dir,
listp->debug_type);
if (check_one_exclude(name, ent, name_is_dir)) {
report_exclude_result(name, ent, name_is_dir,
listp->debug_type);
- return
!ent->include
;
+ return
ent->include ? 1 : -1
;
}
}
}
}