mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-30 12:04:07 +00:00
33ffdd8115
read at least 1 byte from the input file without problems. This fixes a bug in uncompress(1) that causes the accidental removal of files that happen to have the same name as the output file, even when the uncompression fails and is aborted, i.e.: $ echo hello world > hello $ touch hello.Z $ ls -l hello* -rw-rw-r-- 1 giorgos giorgos 12 Jun 14 13:33 hello -rw-rw-r-- 1 giorgos giorgos 0 Jun 14 13:33 hello.Z $ ./uncompress -f hello uncompress: hello.Z: Inappropriate file type or format $ ls -l hello* -rw-rw-r-- 1 giorgos giorgos 0 Jun 14 13:33 hello.Z $ PR: 46787 Submitted by: keramida |
||
---|---|---|
.. | ||
doc | ||
compress.1 | ||
compress.c | ||
Makefile | ||
zopen.3 | ||
zopen.c | ||
zopen.h |