From: Franck Bui Date: Mon, 14 Mar 2022 17:05:49 +0000 (+0100) Subject: copy: use FLAGS_SET() in copy_xattr() X-Git-Tag: v251-rc1~150^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22727%2Fhead;p=thirdparty%2Fsystemd.git copy: use FLAGS_SET() in copy_xattr() --- diff --git a/src/shared/copy.c b/src/shared/copy.c index cc76465fb1c..0043c4ff72a 100644 --- a/src/shared/copy.c +++ b/src/shared/copy.c @@ -1488,7 +1488,7 @@ int copy_xattr(int fdf, int fdt, CopyFlags copy_flags) { NULSTR_FOREACH(p, names) { _cleanup_free_ char *value = NULL; - if (!(copy_flags & COPY_ALL_XATTRS) && !startswith(p, "user.")) + if (!FLAGS_SET(copy_flags, COPY_ALL_XATTRS) && !startswith(p, "user.")) continue; r = fgetxattr_malloc(fdf, p, &value);