From da486c30fe6ed781d5cb865633b937c4edd93857 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 13 Feb 2023 21:56:31 +0100 Subject: [PATCH] copy: Copy symlink xattrs Symlinks can have xattrs as well, let's make sure we copy those as well. --- src/shared/copy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/copy.c b/src/shared/copy.c index 3e624d8844..d15875739a 100644 --- a/src/shared/copy.c +++ b/src/shared/copy.c @@ -504,6 +504,7 @@ static int fd_copy_symlink( AT_SYMLINK_NOFOLLOW) < 0) r = -errno; + (void) copy_xattr(df, from, dt, to, copy_flags); (void) utimensat(dt, to, (struct timespec[]) { st->st_atim, st->st_mtim }, AT_SYMLINK_NOFOLLOW); return r; } -- 2.25.1