Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 9D67E84EE6 for ; Sat, 10 Jun 2023 04:45:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id zOR7ynBvY3Ij for ; Sat, 10 Jun 2023 04:45:52 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 3810984CF2 for ; Sat, 10 Jun 2023 04:45:52 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 164B0FA89; Sat, 10 Jun 2023 04:45:26 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 10 Jun 2023 04:45:26 +0000 From: "Simon Burge" Subject: CVS commit: src/usr.bin/gzip To: source-changes@NetBSD.org Approved: for-source-only Reply-To: simonb@netbsd.org X-Mailer: log_accum Message-Id: <20230610044526.164B0FA89@cvs.NetBSD.org> Module Name: src Committed By: simonb Date: Sat Jun 10 04:45:25 UTC 2023 Modified Files: src/usr.bin/gzip: gzip.c unlz.c unpack.c Log Message: Pull git commit way-etc-20140221.tar.bz2 by Xin Li from FreeBSD: Remove unneeded checks for prelen. In order to determine the type of a compressed file, we have to read in the first four bytes which may also be important for decompression purposes, to do that we would pass the buffer that we have already read in, along with the size of it. Rename header1 to fourbytes to make that explicit, and remove all checks for prelen. To generate a diff of this commit: cvs rdiff -u -r1.118 -r1.119 src/usr.bin/gzip/gzip.c cvs rdiff -u -r1.7 -r1.8 src/usr.bin/gzip/unlz.c cvs rdiff -u -r1.3 -r1.4 src/usr.bin/gzip/unpack.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.