X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fima-setup.c;h=0e0d16a7c98c6d2a16e0d61281be7a437bb86257;hp=8e4fed17e7fc327d5356234468e810539fe1b30d;hb=615938651d3a4fd9253b08da00db22d451a8cef8;hpb=4dfb18922d5d1efb13ee459cbf23832277f85ed7 diff --git a/src/core/ima-setup.c b/src/core/ima-setup.c index 8e4fed17e..0e0d16a7c 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