Commit 0fe987e2 authored by Wayne Davison's avatar Wayne Davison

Fixed a bug in set_compression() where the default dont-compress

patterns (e.g. *.gz) would not match a pathname containing a slash.
parent 770de899
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment