commit | 90198bc486fe044c222b51c3e37d8b6a91951a89 | [log] [tgz] |
---|---|---|
author | Mark Adler <madler@alumni.caltech.edu> | Sat Aug 21 16:19:19 2021 -0700 |
committer | Mark Adler <madler@alumni.caltech.edu> | Sat Aug 21 16:19:19 2021 -0700 |
tree | 0f6e34470dd343cd3b705b09d9c37841261ae30f | |
parent | 66e87114a89f8d97c49ee5710c4d128ea4b358d1 [diff] |
Don't unlink input file if it has other links. Do not unlink the input file when it has other hard links, unless --force or -f is specified. The compression proceeds normally, but the input file remains untouched. This somewhat replicates the behavior of gzip, except that gzip does nothing if there is a hard link, and will only compress and unlink if -f is given.