sane-sandboxed: hopefully fix a problem with path normalization for paths with spaces
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user