SHA256
1
0
forked from pool/gswrap

Accepting request 932546 from Printing

- Fix bugs introduced by last change
  which was ad646933d3b9ec6d767842535414b4af1020c2f7 (boo#1191683)

OBS-URL: https://build.opensuse.org/request/show/932546
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gswrap?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2021-11-20 01:39:24 +00:00 committed by Git OBS Bridge
commit 488e648bed
2 changed files with 10 additions and 4 deletions

8
gswrap
View File

@ -43,7 +43,7 @@ lock=$(mktemp "${TMPDIR:-/tmp}/.gswrap-XXXXXXXXXX") || exit 1
unlock ()
{
test -e "$lock" || return
fuser -TERM "$loc"
fuser -TERM "$lock"
rm -f "$lock"
}
@ -87,8 +87,8 @@ do
opts[o++]="$dir"
opts[o++]="$dir"
done
typeset -i c=0 argc=${#argv[@]}
typeset -a argv=("$@")
typeset -i c=0 argc=${#argv[@]}
for ((c=0; c < argc; c++))
do
arg="${argv[c]}"
@ -133,13 +133,13 @@ do
elif test -n "$dir" -a -d "$dir"
then
tmp=$(mktemp -d "$dir/.gswrap-XXXXXXXXXX") || exit 1
trap "finish '$dir' '$tmp'" ERR EXIT SIGINT SIGHUP
trap "finish '$dir' '$tmp'" EXIT SIGINT SIGHUP
opts[o++]=--bind
opts[o++]="${tmp+"$tmp"}"
opts[o++]="$home/out"
else
tmp=$(mktemp -d "$PWD/.gswrap-XXXXXXXXXX") || exit 1
trap "finish '$PWD' '$tmp'" ERR EXIT SIGINT SIGHUP
trap "finish '$PWD' '$tmp'" EXIT SIGINT SIGHUP
opts[o++]=--bind
opts[o++]="${tmp+"$tmp"}"
opts[o++]="$home/out"

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 19 14:11:05 UTC 2021 - Dr. Werner Fink <werner@suse.de>
- Fix bugs introduced by last change
which was ad646933d3b9ec6d767842535414b4af1020c2f7 (boo#1191683)
-------------------------------------------------------------------
Fri Oct 15 10:34:50 UTC 2021 - Dr. Werner Fink <werner@suse.de>