From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 4 18:35:44 2005 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16E1616A41F for ; Sun, 4 Sep 2005 18:35:44 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 174FA43D45 for ; Sun, 4 Sep 2005 18:35:42 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 16818 invoked by uid 207); 4 Sep 2005 18:35:40 -0000 Received: from keramida@ceid.upatras.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.55):. Processed in 0.456254 secs); 04 Sep 2005 18:35:40 -0000 Received: from dialup55.ach.sch.gr (HELO gothmog.gr) ([81.186.70.55]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 4 Sep 2005 18:35:39 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.4/8.13.4) with ESMTP id j84IZQj0001373; Sun, 4 Sep 2005 21:35:26 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.4/8.13.4/Submit) id j84IZQWZ001372; Sun, 4 Sep 2005 21:35:26 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 4 Sep 2005 21:35:26 +0300 From: Giorgos Keramidas To: "Gary W. Swearingen" Message-ID: <20050904183526.GC760@gothmog.gr> References: <200509041830.j84IUMA2054610@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200509041830.j84IUMA2054610@freefall.freebsd.org> Cc: freebsd-bugs@freebsd.org Subject: Re: bin/85712: uncompress(1) program emits bogus "overwrite?" X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2005 18:35:44 -0000 On 2005-09-04 18:30, "Gary W. Swearingen" wrote: > > A further unimportant bug was noticed: When the program is used with > a "-" arguement, it accepts standard input as the user's reply to > the programs prompt for y/n confirmation, so, for example > > $ echo yesssssssssssssssssssssssssssssssssssssss | compress yyy - >/tmp/y > overwrite yyy.Z? compress: yyy: No such file or directory > $ d /tmp/y > 32 -rw-r--r-- 1 jojo wheel - 0 Sep 4 11:19:35 2005 /tmp/y > > instead of sending the compressed string to /tmp/y, as advertized. This can probably be resolved by opening /dev/tty as the "user query" channel. gzip(1) gets this right, so I'll have a look at the way this is implemented in gzip and try to come up with a compress patch that works similarly.