diff options
-rw-r--r-- | app-emulation/qemu/qemu-9999.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild index 69e36290636d..dbfe40f35758 100644 --- a/app-emulation/qemu/qemu-9999.ebuild +++ b/app-emulation/qemu/qemu-9999.ebuild @@ -641,9 +641,11 @@ generate_initd() { sparc*) qcpu="sparc";; esac + # we use 'printf' here to be portable across 'sh' + # implementations: #679168 cat <<EOF >>"${out}" if [ "\${cpu}" != "${qcpu}" -a -x "${interpreter}" ] ; then - echo ':${package}:M::${magic}:${mask}:${interpreter}:'"\${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register + printf '%s\n' ':${package}:M::${magic}:${mask}:${interpreter}:'"\${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register fi EOF |