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:
770de89
)
Fixed a bug in set_compression() where the default dont-compress
author
Wayne Davison
<wayned@samba.org>
Fri, 30 Dec 2005 06:03:40 +0000
(06:03 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 30 Dec 2005 06:03:40 +0000
(06:03 +0000)
patterns (e.g. *.gz) would not match a pathname containing a slash.
token.c
patch
|
blob
|
blame
|
history
diff --git
a/token.c
b/token.c
index
3286a13
..
8ce73ba
100644
(file)
--- a/
token.c
+++ b/
token.c
@@
-47,6
+47,9
@@
void set_compression(char *fname)
return;
}
+ if ((tok = strrchr(fname, '/')) != NULL)
+ fname = tok + 1;
+
dont = strdup(dont);
fname = strdup(fname);
if (!dont || !fname)