summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-12 16:24:33 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-12 17:30:25 +0100
commit7430ec6ac08f2c0416d9f806964c46b30f3862b2 (patch)
tree2b42cca3d6b3cc117aa446718585c1a21c8c18aa /src/core
parent19ee32dc4d337a033c95c7d3302666f2ea4340bd (diff)
copy: use btrfs reflinking only whe we know we copy full files
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ima-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ima-setup.c b/src/core/ima-setup.c
index 8e4fed17e7..0e0d16a7c9 100644
--- a/src/core/ima-setup.c
+++ b/src/core/ima-setup.c
@@ -66,7 +66,7 @@ int ima_setup(void) {
return 0;
}
- r = copy_bytes(policyfd, imafd, -1);
+ r = copy_bytes(policyfd, imafd, (off_t) -1, false);
if (r < 0)
log_error_errno(r, "Failed to load the IMA custom policy file "IMA_POLICY_PATH": %m");
else