From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 15 20:54:05 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE8391065670; Mon, 15 Nov 2010 20:54:05 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id AFFD28FC0A; Mon, 15 Nov 2010 20:54:04 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 78372A69B77; Tue, 16 Nov 2010 04:54:00 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id j6+OqFTutihs; Tue, 16 Nov 2010 04:53:53 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 8F1E5A69B6B; Tue, 16 Nov 2010 04:53:52 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=KFmKX11Gh1hxEg/j9SzBya5fK7OuBVhgKNYlDDtix7be8DCv6AFlvvW1hQv2/UQHF iJYEeGN7kCrGFwsWM6wjg== Message-ID: <4CE19DDD.3070105@delphij.net> Date: Mon, 15 Nov 2010 12:53:49 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.15) Gecko/20101028 Thunderbird/3.0.10 ThunderBrowse/3.3.2 MIME-Version: 1.0 To: Alexander Best References: <20101115182409.GA97839@freebsd.org> In-Reply-To: <20101115182409.GA97839@freebsd.org> X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: changing gzip's symlink handling to be consistent with bzip2, xz and GNU gzip X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Nov 2010 20:54:05 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, On 11/15/10 10:24, Alexander Best wrote: > hi there, > > any thoughts on this patch? it changes the semantics of gzip so that it is > consistent with the semantics of bzip2, xz and for more important GNU gzip. Could you please elaborate more about the GNU gzip behavior? By the way I also found some difference between BSD gzip and GNU gzip: touch foo ln -s foo.nonexistent foo.gz gzip foo gzip: could not create output: foo.gz: File exists /usr/local/bin/gzip foo gzip: foo.gz already exists; do you wish to overwrite (y or n)? ^C (case 1) echo | /usr/local/bin/gzip foo gzip: foo.gz already exists; not overwritten gzip -f foo gzip: could not create output: foo.gz: File exists /usr/local/bin/gzip -f foo (succeeded; case 2). Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJM4Z3cAAoJEATO+BI/yjfBLGoIAKcvx+bH6L0pJqLSv34bii6G 1FwXmPQqeIs+B5K8wNMmWblWLidJc2xkXxFCdJKsoZmgS6Hcakg6r1CzZ7tkjMAP CqYMG3cgkCiqZpgZ8QY3E3tmdxMqYk3EyII+TUv2xSNvUp8A7TPvC2vwS1eD3GzO OACbH/ULSJ30iMXi/A6nPkvEWesuExGplfpzzfJ0yCySKj/3HyXV87HxVw46LFYj XsG3F7WWUkVrIzCFGLgaN0ULRZlz30Fq4ODnm4sAnUJQx0hzHGUDmYkgLxqh50t5 AN81GC06I6XZttqIaM1FNm5Dp27Vh6uVfYd21lJ+g5ee5kXM6Fd03jSJOqZJiro= =QEEo -----END PGP SIGNATURE-----