Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f9af90
)
fixed a small memory leak when using -C
author
Andrew Tridgell
<tridge@samba.org>
Thu, 27 Aug 1998 05:17:21 +0000
(
05:17
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Thu, 27 Aug 1998 05:17:21 +0000
(
05:17
+0000)
thanks to kalt@research.bell-labs.com for this fix.
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
cb14d70
..
406a5f4
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-498,6
+498,8
@@
static void send_directory(int f,struct file_list *flist,char *dir)
}
p = fname + strlen(fname);
+ local_exclude_list = NULL;
+
if (cvs_exclude) {
if (strlen(fname) + strlen(".cvsignore") <= MAXPATHLEN-1) {
strcpy(p,".cvsignore");
@@
-517,6
+519,10
@@
static void send_directory(int f,struct file_list *flist,char *dir)
send_file_name(f,flist,fname,recurse,0);
}
+ if (local_exclude_list) {
+ add_exclude_list("!", &local_exclude_list, 0);
+ }
+
closedir(d);
}