mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
copy: use FLAGS_SET() in copy_xattr()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user