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 bug in the hlink code - it wasn't taking account of the new
[rsync/rsync.git]
/
exclude.c
diff --git
a/exclude.c
b/exclude.c
index
a55b2f6
..
83c0b39
100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-24,8
+24,9
@@
#include "rsync.h"
extern int verbose;
#include "rsync.h"
extern int verbose;
+extern int am_server;
-static char **exclude_list
= NULL
;
+static char **exclude_list;
static int is_regex(char *str)
{
static int is_regex(char *str)
{
@@
-86,7
+87,7
@@
void add_exclude_list(char *pattern,char ***list)
if (strcmp(pattern,"!") == 0) {
if (verbose > 2)
if (strcmp(pattern,"!") == 0) {
if (verbose > 2)
- fprintf(F
ERROR
,"clearing exclude list\n");
+ fprintf(F
INFO
,"clearing exclude list\n");
while ((len)--)
free((*list)[len]);
free((*list));
while ((len)--)
free((*list)[len]);
free((*list));
@@
-104,7
+105,7
@@
void add_exclude_list(char *pattern,char ***list)
out_of_memory("add_exclude");
if (verbose > 2)
out_of_memory("add_exclude");
if (verbose > 2)
- fprintf(F
ERROR
,"add_exclude(%s)\n",pattern);
+ fprintf(F
INFO
,"add_exclude(%s)\n",pattern);
(*list)[len+1] = NULL;
}
(*list)[len+1] = NULL;
}
@@
-163,9
+164,9
@@
void recv_exclude_list(int f)
char line[MAXPATHLEN];
int l;
while ((l=read_int(f))) {
char line[MAXPATHLEN];
int l;
while ((l=read_int(f))) {
-
read_buf(f,line,l
);
-
line[l] = 0
;
- add_exclude(line);
+
if (l >= MAXPATHLEN) overflow("recv_exclude_list"
);
+
read_sbuf(f,line,l)
;
+
add_exclude(line);
}
}
}
}