]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
copy: use FLAGS_SET() in copy_xattr() 22727/head
authorFranck Bui <fbui@suse.com>
Mon, 14 Mar 2022 17:05:49 +0000 (18:05 +0100)
committerFranck Bui <fbui@suse.com>
Mon, 14 Mar 2022 17:06:42 +0000 (18:06 +0100)
src/shared/copy.c

index cc76465fb1c549d9594a08421cdeb3aa936d3648..0043c4ff72aceb56e8e9747ca19be2c34fdc61d1 100644 (file)
@@ -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);