summaryrefslogtreecommitdiff
path: root/token.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-12-30 06:03:40 +0000
committerWayne Davison <wayned@samba.org>2005-12-30 06:03:40 +0000
commit0fe987e22644bb40affa64a1c3141600ca6606d5 (patch)
tree9579870ddc9f144f8a563d50651c1a48b8b9b038 /token.c
parent770de8994e165c0025966e10eff4caff915bb436 (diff)
downloadrsync-0fe987e22644bb40affa64a1c3141600ca6606d5.tar.gz
Fixed a bug in set_compression() where the default dont-compress
patterns (e.g. *.gz) would not match a pathname containing a slash.
Diffstat (limited to 'token.c')
-rw-r--r--token.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/token.c b/token.c
index 3286a13d..8ce73ba7 100644
--- 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)