1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

cp: correctly copy mode, ownership, acl and context

Fix a mix-up between ownership and mode. The latter (mode / file permissions)
can also be set on windows (which however only affects the read-only flag),
while there doesn't seem to be a straight-forward way to change file ownership
on windows.

Copy the acl as well when copying the mode. This is a non-default feature and can be
enabled with --features feat_acl, because it doesn't seem to work on CI.
It is only available for unix so far.

Copy the SELinux context if possible.
This commit is contained in:
Michael Debertol 2021-08-30 01:27:47 +02:00
parent 575fbd4cb7
commit 8b74562820
8 changed files with 303 additions and 51 deletions

View file

@ -35,6 +35,7 @@ falsey
fileio
flamegraph
fullblock
getfacl
gibi
gibibytes
glob
@ -49,6 +50,7 @@ iflag
iflags
kibi
kibibytes
libacl
lcase
lossily
mebi
@ -91,6 +93,7 @@ seedable
semver
semiprime
semiprimes
setfacl
shortcode
shortcodes
siginfo

View file

@ -16,6 +16,7 @@ chrono
conv
corasick
crossterm
exacl
filetime
formatteriteminfo
fsext