projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
077ca08
)
copy: use FLAGS_SET() in copy_xattr()
author
Franck Bui
<fbui@suse.com>
Mon, 14 Mar 2022 17:05:49 +0000
(18:05 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 28 Apr 2022 16:43:36 +0000
(18:43 +0200)
(cherry picked from commit
e394a6fc096dbacdfdd8ecada01642a3a4e402c6
)
src/shared/copy.c
patch
|
blob
|
history
diff --git
a/src/shared/copy.c
b/src/shared/copy.c
index 1ace40424e5ef3153054d10517008d3af4cdf65f..a490ee9fec4120e358a3a260ac0cb6c7ee20b41a 100644
(file)
--- a/
src/shared/copy.c
+++ b/
src/shared/copy.c
@@
-1401,7
+1401,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);