mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
eapi8-dosym.eclass: Prevent globbing of argument in _dosym8_canonicalize
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user