Subject: Re: CVS commit: src/usr.bin/gzip
To: None <mrg@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: source-changes
Date: 07/11/2004 19:17:00
> 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