diff options
author | Andrej Lajovic <andrej.lajovic@ad-vega.si> | 2021-08-09 01:43:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-08-11 17:48:10 +0200 |
commit | 23e026de254df54119e6565bf7b638b9b83ec4fd (patch) | |
tree | 36f45ceabf1fc254c1d93163707ee4b79b4ed066 /src/locale | |
parent | a0c5a3f0c052fc05542945688e20784b55a1303d (diff) | |
download | systemd-23e026de254df54119e6565bf7b638b9b83ec4fd.tar.gz |
shared/copy: add a new flag COPY_ALL_XATTRS
When the flag COPY_ALL_XATTRS is set, it causes the complete set of xattrs
to be copied. If the flag is unset, only xattrs from the "user" namespace
are copied.
Fixes #17178.
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/keymap-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c index d48f0b4216..32af23d692 100644 --- a/src/locale/keymap-util.c +++ b/src/locale/keymap-util.c @@ -845,7 +845,7 @@ int locale_gen_enable_locale(const char *locale) { r = copy_access(fileno(fr), fileno(fw)); if (r < 0) return r; - r = copy_xattr(fileno(fr), fileno(fw)); + r = copy_xattr(fileno(fr), fileno(fw), COPY_ALL_XATTRS); if (r < 0) return r; } |