localed: don't fail if we cannot copy an xattr

We ignore xattr copy failures on all other cases, and we should do so
here too.

Fixes: #24106
This commit is contained in:
Lennart Poettering
2022-07-25 11:31:05 +02:00
committed by Luca Boccassi
parent 1160267a98
commit d3efe29452

View File

@@ -746,7 +746,7 @@ int locale_gen_enable_locale(const char *locale) {
return r;
r = copy_xattr(fileno(fr), fileno(fw), COPY_ALL_XATTRS);
if (r < 0)
return r;
log_debug_errno(r, "Failed to copy all xattrs from old to new /etc/locale.gen file, ignoring: %m");
}
if (!write_new) {