summaryrefslogtreecommitdiff
path: root/src/import/import-raw.c
diff options
context:
space:
mode:
authorAndrej Lajovic <andrej.lajovic@ad-vega.si>2021-08-09 01:43:54 +0200
committerLennart Poettering <lennart@poettering.net>2021-08-11 17:48:10 +0200
commit23e026de254df54119e6565bf7b638b9b83ec4fd (patch)
tree36f45ceabf1fc254c1d93163707ee4b79b4ed066 /src/import/import-raw.c
parenta0c5a3f0c052fc05542945688e20784b55a1303d (diff)
downloadsystemd-23e026de254df54119e6565bf7b638b9b83ec4fd.tar.gz
shared/copy: add a new flag COPY_ALL_XATTRS
When the flag COPY_ALL_XATTRS is set, it causes the complete set of xattrs to be copied. If the flag is unset, only xattrs from the "user" namespace are copied. Fixes #17178.
Diffstat (limited to 'src/import/import-raw.c')
-rw-r--r--src/import/import-raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/import-raw.c b/src/import/import-raw.c
index 0e7757b6f0..649cffb55f 100644
--- a/src/import/import-raw.c
+++ b/src/import/import-raw.c
@@ -206,7 +206,7 @@ static int raw_import_finish(RawImport *i) {
if (S_ISREG(i->st.st_mode)) {
(void) copy_times(i->input_fd, i->output_fd, COPY_CRTIME);
- (void) copy_xattr(i->input_fd, i->output_fd);
+ (void) copy_xattr(i->input_fd, i->output_fd, 0);
}
if (i->flags & IMPORT_READ_ONLY) {