Handle relative paths more gracefully
OBS-URL: https://build.opensuse.org/package/show/Printing/gswrap?expand=0&rev=8
This commit is contained in:
parent
ace5a11ad1
commit
3341fed640
4
gswrap
4
gswrap
@ -104,8 +104,6 @@ do
|
||||
trap "finish '$PWD' '$tmp'" ERR EXIT SIGINT SIGHUP
|
||||
opts[o++]="--bind ${tmp+"$tmp"} $home/out"
|
||||
fi
|
||||
# change to new working directory in sandbox
|
||||
opts[o++]="--chdir $home/out"
|
||||
fi
|
||||
argv[argc]="-sOutputFile=$home/out/${file}"
|
||||
continue
|
||||
@ -129,6 +127,8 @@ do
|
||||
then
|
||||
opts[o++]="--ro-bind $arg $home/$arg"
|
||||
else
|
||||
arg="$(realpath $arg)" || exit 1
|
||||
argv[argc]="$arg"
|
||||
test "$arg" != / || continue
|
||||
test "$arg" != /home || continue
|
||||
test "$arg" != $home || continue
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 10 10:51:59 UTC 2020 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
- Handle relative paths more gracefully
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 10 08:53:48 UTC 2020 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user