summaryrefslogtreecommitdiff
path: root/src/shared/copy.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-08 20:47:35 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-08 20:47:35 +0200
commit1ed8f8c16da99551c6731764759878a0bc243fde (patch)
treee374c9701d1f6217e77b056b52401c02d59755eb /src/shared/copy.c
parent171181bcd64d5a128f6678107d18ffa1c9388b94 (diff)
util: merge change_attr_fd() and chattr_fd()
Diffstat (limited to 'src/shared/copy.c')
-rw-r--r--src/shared/copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/copy.c b/src/shared/copy.c
index 775a339856..1282cb88be 100644
--- a/src/shared/copy.c
+++ b/src/shared/copy.c
@@ -372,7 +372,7 @@ int copy_file(const char *from, const char *to, int flags, mode_t mode, unsigned
}
if (chattr_flags != 0)
- (void) chattr_fd(fdt, true, chattr_flags);
+ (void) chattr_fd(fdt, chattr_flags, (unsigned) -1);
r = copy_file_fd(from, fdt, true);
if (r < 0) {