| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
to be compressed/decompressed to standard output.
|
| |
|
|
|
|
| |
its size would not be reduced (SUSv3).
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
of the recent WARNS commits. The idea is:
1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.
|
|
|
|
|
| |
Use a better choice than size_t for vertain variables.
Fix some comment alignment.
|
| |
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
| |
<time.h>).
|
|
|
|
|
|
|
|
|
|
|
|
| |
compress uses setfile() to make flags, ownership and mode of the output
the same as those of the original. However, if the filesystem holding the
output file doesn't support these operations, compress prints a warning.
This bites a bit with NFS directories, which always fail the chflags()
operation. If the file system doesn't support the operation, then the
flags data wasn't valid on the original file anyway, so the warning is
spurious.
Submitted by: bin/16981 (Peter Edwards <peter.edwards@ireland.com>)
|
| |
|
| |
|
|
|
|
|
| |
earlier (with style bugs of course), so zcat was an alias for uncompress
instead of `uncompress -c'.
|
|
|
|
|
|
| |
makes us more useful in a tight environment.
Submitted by: Wilfredo Sanchez <wsanchez@apple.com>
|
|
|
|
| |
posix standard on the topic.
|
|
|
|
| |
declaration from <stdio.h> to "zopen.h" left it undeclared here.
|
| |
|
|
|