sane-sandboxed: hopefully fix a problem with path normalization for paths with spaces

This commit is contained in:
2024-02-02 22:56:43 +00:00
parent 5e3c2636db
commit 0ee9f2026c

View File

@@ -399,7 +399,7 @@ canonicalizePaths() {
# remove '//' and simplify '.', '..' paths, into canonical absolute logical paths. # remove '//' and simplify '.', '..' paths, into canonical absolute logical paths.
_normPaths=() _normPaths=()
for _path in "${paths[@]}"; do for _path in "${paths[@]}"; do
_normPaths+=($(normPath "$_path")) _normPaths+=("$(normPath "$_path")")
done done
# remove subpaths, but the result might include duplicates. # remove subpaths, but the result might include duplicates.