From c17cfe6ef7bc1ac4501b5f6e7d4f4efc08aef439 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 13 Feb 2023 21:51:11 +0100 Subject: copy: Make copy_xattr() more generic Let's make copy_xattr() a little more generic in preparation for copying symlink xattrs. --- src/locale/localed-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/locale') diff --git a/src/locale/localed-util.c b/src/locale/localed-util.c index 8f18ecd0d2..d6b6593bea 100644 --- a/src/locale/localed-util.c +++ b/src/locale/localed-util.c @@ -921,7 +921,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), COPY_ALL_XATTRS); + r = copy_xattr(fileno(fr), NULL, fileno(fw), NULL, COPY_ALL_XATTRS); if (r < 0) log_debug_errno(r, "Failed to copy all xattrs from old to new /etc/locale.gen file, ignoring: %m"); } -- cgit v1.2.1