From 0fe987e22644bb40affa64a1c3141600ca6606d5 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 30 Dec 2005 06:03:40 +0000 Subject: [PATCH] Fixed a bug in set_compression() where the default dont-compress patterns (e.g. *.gz) would not match a pathname containing a slash. --- token.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.34.1