]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
integrity/ima-policy-load.sh: s/echo -n/printf
authorHarald Hoyer <harald@redhat.com>
Thu, 20 Oct 2016 11:58:25 +0000 (13:58 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 20 Oct 2016 11:58:25 +0000 (13:58 +0200)
modules.d/98integrity/ima-policy-load.sh

index 5460d025b285eabcb1ac6fc7018a21463d94c1a7..85cd3b94ee1f88be5581c4b81cb9a1cc60e12cf1 100755 (executable)
@@ -30,7 +30,7 @@ load_ima_policy()
     # check the existence of the IMA policy file
     [ -f "${IMAPOLICYPATH}" ] && {
         info "Loading the provided IMA custom policy";
-        echo -n "${IMAPOLICYPATH}" > ${IMASECDIR}/policy || \
+        printf '%s' "${IMAPOLICYPATH}" > ${IMASECDIR}/policy || \
             cat "${IMAPOLICYPATH}" > ${IMASECDIR}/policy
     }