Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/usr.bin/gzip
> Module Name: src
> Committed By: mrg
> Date: Sun Jul 11 09:40:51 UTC 2004
>
> Modified Files:
> src/usr.bin/gzip: gzip.c
>
> Log Message:
> check the suffix of the input file ala GNU gzip, and error about it
> unless -f is given. fixes PR#26240
>
>
> To generate a diff of this commit:
> cvs rdiff -r1.55 -r1.56 src/usr.bin/gzip/gzip.c
it seems that GNU gzip doesn't care about -f in this case.
btw, isn't the following code problematic, when (slen > len) ?
> if (strcmp(*s, file + len - slen) == 0)
YAMAMOTO Takashi
Home |
Main Index |
Thread Index |
Old Index