aboutsummaryrefslogtreecommitdiff
path: root/src/xz/xz.1
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2021-01-11 23:41:16 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-07-24 13:29:42 +0300
commit63e3cdef805a4d9ea94c76c36cbabe4dc76abe36 (patch)
treed77c9a416fb7a7e2d88fc54b7edb06b21f871b3c /src/xz/xz.1
parentxzgrep man page: Document exit statuses. (diff)
downloadxz-63e3cdef805a4d9ea94c76c36cbabe4dc76abe36.tar.xz
xz: Make --keep accept symlinks, hardlinks, and setuid/setgid/sticky.
Previously this required using --force but that has other effects too which might be undesirable. Changing the behavior of --keep has a small risk of breaking existing scripts but since this is a fairly special corner case I expect the likehood of breakage to be low enough. I think the new behavior is more logical. The only reason for the old behavior was to be consistent with gzip and bzip2. Thanks to Vincent Lefevre and Sebastian Andrzej Siewior.
Diffstat (limited to '')
-rw-r--r--src/xz/xz.116
1 files changed, 15 insertions, 1 deletions
diff --git a/src/xz/xz.1 b/src/xz/xz.1
index 11473ed7..c5ac032e 100644
--- a/src/xz/xz.1
+++ b/src/xz/xz.1
@@ -5,7 +5,7 @@
.\" This file has been put into the public domain.
.\" You can do whatever you want with this file.
.\"
-.TH XZ 1 "2022-07-12" "Tukaani" "XZ Utils"
+.TH XZ 1 "2022-07-24" "Tukaani" "XZ Utils"
.
.SH NAME
xz, unxz, xzcat, lzma, unlzma, lzcat \- Compress or decompress .xz and .lzma files
@@ -392,6 +392,20 @@ should be used.
.TP
.BR \-k ", " \-\-keep
Don't delete the input files.
+.IP ""
+Since
+.B xz
+5.2.6,
+this option also makes
+.B xz
+compress or decompress even if the input is
+a symbolic link to a regular file,
+has more than one hard link,
+or has the setuid, setgid, or sticky bit set.
+The setuid, setgid, and sticky bits are not copied
+to the target file.
+In earlier versions this was only done with
+.BR \-\-force .
.TP
.BR \-f ", " \-\-force
This option has several effects: