From 7430ec6ac08f2c0416d9f806964c46b30f3862b2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 12 Dec 2014 16:24:33 +0100 Subject: copy: use btrfs reflinking only whe we know we copy full files --- src/core/ima-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ima-setup.c') 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 -- cgit v1.2.3