From: Daan De Meyer Date: Mon, 13 Feb 2023 20:56:31 +0000 (+0100) Subject: copy: Copy symlink xattrs X-Git-Tag: v254-rc1~1278^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da486c30fe6ed781d5cb865633b937c4edd93857;p=thirdparty%2Fsystemd.git copy: Copy symlink xattrs Symlinks can have xattrs as well, let's make sure we copy those as well. --- diff --git a/src/shared/copy.c b/src/shared/copy.c index 3e624d8844f..d15875739ac 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; }