Skip to content

Commit

Permalink
Quote temporary file name being deleted
Browse files Browse the repository at this point in the history
This should not change behavior, but one cannot be too careful with
arguments to rm(1).
  • Loading branch information
DemiMarie committed Dec 20, 2022
1 parent a896e24 commit 124425c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubes-rpc/admin.vm.volume.Import
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export LC_ALL=C

# use temporary file, because env variables deal poorly with \0 inside
tmpfile=$(mktemp)
trap 'rm -f $tmpfile' EXIT
trap 'rm -f -- "$tmpfile"' EXIT

requested_size=""
if [[ "${0##*/}" == admin.vm.volume.ImportWithSize ]]; then
Expand Down

0 comments on commit 124425c

Please sign in to comment.