]> git.ipfire.org Git - thirdparty/xz.git/commit
xz: Make --keep accept symlinks, hardlinks, and setuid/setgid/sticky.
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 11 Jan 2021 21:41:16 +0000 (23:41 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 11 Jan 2021 21:41:16 +0000 (23:41 +0200)
commit074259f4f3966aeac6edb205fecbc1a8d2b58bb2
tree1a7f4ffedfe9ce2cd36f56ff23156db3b5d4ae43
parent73c555b3077c19dda29b6f4592ced2af876f8333
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.
src/xz/file_io.c
src/xz/xz.1