Subject: Re: bin/774: compress interacts in unexpected way with fdesc filesystem
To: None <mouse@Collatz.McRCIM.McGill.EDU>
From: Brad Spencer <brad@anduin.eldar.org>
List: netbsd-bugs
Date: 02/02/1995 23:29:51
>> 		cd /tmp
>> 		cp /etc/hosts hosts
>> 		compress < hosts > h.Z
>> 	At this point a message will me printed on stderr asking
>> 	whether or not '/dev/stdin' should be overwritten.
>
>And if you supply -f, compress will try to remove /dev/stdin or
>/dev/stdout, depending on whether the compress succeeds or not.  The
>attempt will fail, because you can't remove fdesc's /dev/std{in,out},
>but it will cause compress to produce a confusing noise message.

The patch I supplied takes care of this, also....

>In my opinion, the correct thing is to pass magic tokens to compress()
>and decompress() for standard input and output, rather than passing
>/dev/stdin and /dev/stdout and letting everything happen "normally".
>
>					der Mouse
>
>			    mouse@collatz.mcrcim.mcgill.edu

[grin]

I don't know... really...  I was prompted to do this, when I noticed
that the fonts were not compressed when I compiled X11R6.


Brad Spencer - brad@anduin.eldar.org