]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
localed: don't fail if we cannot copy an xattr
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Jul 2022 09:31:05 +0000 (11:31 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 25 Jul 2022 19:32:57 +0000 (20:32 +0100)
We ignore xattr copy failures on all other cases, and we should do so
here too.

Fixes: #24106
src/locale/localed-util.c

index 598e89591c04d4e6af3877d3b4bc5543b9b6c769..dd2bbf5bfb80a58e1d2256c2bced26854b498fcc 100644 (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) {