diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-06-06 06:10:09 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-06-06 19:50:24 +0200 |
commit | d5638e49ee79c0f7e4672d5537e97a4ccc7f2eb2 (patch) | |
tree | 81d167246f49b27c55fef5dfa8359067ed4a4eb9 /eclass | |
parent | app-arch/dump: Warn about serious bugs (diff) | |
download | gentoo-d5638e49ee79c0f7e4672d5537e97a4ccc7f2eb2.tar.gz gentoo-d5638e49ee79c0f7e4672d5537e97a4ccc7f2eb2.tar.bz2 gentoo-d5638e49ee79c0f7e4672d5537e97a4ccc7f2eb2.zip |
eapi8-dosym.eclass: Prevent globbing of argument in _dosym8_canonicalize
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to '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 4e3977ef54cf..93b11dda7fd6 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=/ - path=( $1 ) + read -r -d '' -a path <<< "$1" [[ $1 == /* ]] && slash=/ while true; do @@ -39,7 +39,7 @@ _dosym8_canonicalize() { # or as a special case, "/.." at the beginning of the path. # Also drop empty and "." path components as we go along. prev= - for i in ${!path[@]}; do + for i in "${!path[@]}"; do if [[ -z ${path[i]} || ${path[i]} == . ]]; then unset "path[i]" elif [[ ${path[i]} != .. ]]; then |