diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-06-07 10:42:07 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-06-07 10:56:25 +0200 |
commit | 610b01ff117232fde9068a9e97e7355d6e53f2e4 (patch) | |
tree | 6248d30baf0901f425724a44b5c6a0d412590df3 /eclass/eapi8-dosym.eclass | |
parent | mate-base/mate-control-center: Stabilize 1.26.0-r2 amd64, #907979 (diff) | |
download | gentoo-610b01ff117232fde9068a9e97e7355d6e53f2e4.tar.gz gentoo-610b01ff117232fde9068a9e97e7355d6e53f2e4.tar.bz2 gentoo-610b01ff117232fde9068a9e97e7355d6e53f2e4.zip |
eapi8-dosym.eclass: Fix another corner case of strange input
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/eapi8-dosym.eclass')
-rw-r--r-- | eclass/eapi8-dosym.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/eapi8-dosym.eclass b/eclass/eapi8-dosym.eclass index e139b74cfea0..866c98c78d91 100644 --- a/eclass/eapi8-dosym.eclass +++ b/eclass/eapi8-dosym.eclass @@ -31,7 +31,7 @@ esac _dosym8_canonicalize() { local path slash i prev out IFS=/ - read -r -d '' -a path < <(echo -n "$1") + read -r -d '' -a path < <(printf '%s\0' "$1") [[ $1 == /* ]] && slash=/ while true; do @@ -56,7 +56,7 @@ _dosym8_canonicalize() { done out="${slash}${path[*]}" - echo "${out:-.}" + printf "%s\n" "${out:-.}" } # @FUNCTION: dosym8 |