sane-sandboxed: fix typo in linkCache queries, which would otherwise break for paths containing spaces

This commit is contained in:
Colin 2024-05-14 01:22:08 +00:00
parent 3557994cbb
commit 38c038f4f7

View File

@ -285,7 +285,7 @@ readlinkOnce() {
local outVar="$1"
local path="$2"
local linkTarget=
if [ -v "linkCache["$path"]" ]; then
if [ -v linkCache["$path"] ]; then
linkTarget="${linkCache["$path"]}"
elif [ -L "$path" ]; then
# path is a link, but not in the cache