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
- check for sys/select.h
[rsync/rsync.git]
/
exclude.c
diff --git
a/exclude.c
b/exclude.c
index
b5b230b
..
e82bafa
100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-35,7
+35,6
@@
static int is_regex(char *str)
static int check_one_exclude(char *name,char *pattern)
{
static int check_one_exclude(char *name,char *pattern)
{
- char *str;
char *p;
if (!strchr(pattern,'/') && (p=strrchr(name,'/')))
char *p;
if (!strchr(pattern,'/') && (p=strrchr(name,'/')))
@@
-87,7
+86,7
@@
void add_exclude_list(char *pattern,char ***list)
if (strcmp(pattern,"!") == 0) {
if (verbose > 2)
if (strcmp(pattern,"!") == 0) {
if (verbose > 2)
- fprintf(
stderr
,"clearing exclude list\n");
+ fprintf(
FERROR
,"clearing exclude list\n");
while ((len)--)
free((*list)[len]);
free((*list));
while ((len)--)
free((*list)[len]);
free((*list));
@@
-105,7
+104,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(
stderr
,"add_exclude(%s)\n",pattern);
+ fprintf(
FERROR
,"add_exclude(%s)\n",pattern);
(*list)[len+1] = NULL;
}
(*list)[len+1] = NULL;
}
@@
-122,8
+121,8
@@
char **make_exclude_list(char *fname,char **list1,int fatal)
char line[MAXPATHLEN];
if (!f) {
if (fatal) {
char line[MAXPATHLEN];
if (!f) {
if (fatal) {
- fprintf(
stderr
,"%s : %s\n",fname,strerror(errno));
- exit(1);
+ fprintf(
FERROR
,"%s : %s\n",fname,strerror(errno));
+ exit
_cleanup
(1);
}
return list;
}
}
return list;
}