Problem with compress

Kent Landfield - comp.sources.misc kent at uunet.UU.NET
Thu May 16 12:29:57 AEST 1991


In article <1991May15.173739.29874 at mp.cs.niu.edu> rickert at mp.cs.niu.edu (Neil Rickert) writes:
> Am I alone in thinking that the way compress handles symlinks is just fine.
>What I don't like is the way it handles hard links.  What would be wrong with
>'compress foo' just creating the compressed 'foo.Z' and deleting 'foo', and
 'uncompress foo.Z' creating the uncompressed 'foo' and removing 'foo.Z'?

"I can fix that bug in three characters.. I can fix that bug in two characters.
..I can fix that bug in one character. Fix That BUG!" :-)

If you wish to fix/break compress, depending on your point of view, edit
compress.c and change the stat() call in the copystat() function to lstat().
A one character change... Then when you try to compress/uncompress a symbolic
link it gives you the following results...

index:  -- not a regular file: unchanged

If you want something done, you have to do it yourself... :-) :-)

			-Kent+
-- 
Kent Landfield                   INTERNET: kent at sparky.IMD.Sterling.COM
Sterling Software, IMD           UUCP:     uunet!sparky!kent
Phone:    (402) 291-8300         FAX:      (402) 291-4362
Please send comp.sources.misc-related mail to kent at uunet.uu.net.



More information about the Comp.sources.bugs mailing list