X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/770de8994e165c0025966e10eff4caff915bb436..0fe987e22644bb40affa64a1c3141600ca6606d5:/token.c 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)