diff --git a/gswrap b/gswrap index 6036aa9..8f54a17 100644 --- a/gswrap +++ b/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 diff --git a/gswrap.changes b/gswrap.changes index 6a9ab32..0ca044e 100644 --- a/gswrap.changes +++ b/gswrap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 10 10:51:59 UTC 2020 - Dr. Werner Fink + +- Handle relative paths more gracefully + ------------------------------------------------------------------- Fri Jan 10 08:53:48 UTC 2020 - Dr. Werner Fink