bin/85712: uncompress(1) program emits bogus "overwrite?"

Giorgos Keramidas keramida at ceid.upatras.gr
Sun Sep 4 11:35:44 PDT 2005


On 2005-09-04 18:30, "Gary W. Swearingen" <garys at 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.



More information about the freebsd-bugs mailing list