mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
copy: use FLAGS_SET() in copy_xattr()
This commit is contained in:
parent
11ee11dbb3
commit
e394a6fc09
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user