[Ulf Harnhammar] > here is a better patch. It removes the directory part of the > filename when it is read from the .gz file, and not when opening it, > so the earlier side effects should disappear now.
The patch applies, but do not compile with gzip 1.2.4a. base_name() is an unknown function in that source. Can basename() be used instead? The code seem to indicate this. This patch compiles, but I am not sure if it is correct, yet. --- src-1.2.4a-local/gzip.c 1993-08-19 15:39:43.000000000 +0200 +++ src-1.2.4aUSIT.1/gzip.c 2005-05-19 18:09:02.000000000 +0200 @@ -1251,6 +1251,8 @@ error("corrupted input -- file name too large"); } } + char *base2 = basename (base); + strcpy(base, base2); /* If necessary, adapt the name to local OS conventions: */ if (!list) { MAKE_LEGAL_NAME(base); -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]