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
Define the WEXITSTATUS macro for systems that don't have it.
[rsync/rsync.git]
/
exclude.c
diff --git
a/exclude.c
b/exclude.c
index
444a2b4
..
d8aa494
100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-270,8
+270,11
@@
void send_exclude_list(int f)
}
for (i=0;exclude_list[i];i++) {
}
for (i=0;exclude_list[i];i++) {
- char *pattern = exclude_list[i]->pattern;
int l;
int l;
+ char pattern[MAXPATHLEN];
+
+ strlcpy(pattern,exclude_list[i]->pattern,sizeof(pattern));
+ if (exclude_list[i]->directory) strlcat(pattern,"/", sizeof(pattern));
l = strlen(pattern);
if (l == 0) continue;
l = strlen(pattern);
if (l == 0) continue;