Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Sep 2005 21:35:26 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        "Gary W. Swearingen" <garys@opusnet.com>
Cc:        freebsd-bugs@freebsd.org
Subject:   Re: bin/85712: uncompress(1) program emits bogus "overwrite?"
Message-ID:  <20050904183526.GC760@gothmog.gr>
In-Reply-To: <200509041830.j84IUMA2054610@freefall.freebsd.org>
References:  <200509041830.j84IUMA2054610@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-09-04 18:30, "Gary W. Swearingen" <garys@opusnet.com> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050904183526.GC760>