Debian Codegraph @

qemu-stubs/qemu-var-tmp

raw symbols SCIP
1 #!/bin/sh
2 # SPDX-License-Identifier: Apache-2.0
3 # SPDX-FileCopyrightText: Zygmunt Krynicki
4 set -eu
5
6 if ! touch /var/tmp/image-garden-canary 2>/dev/null; then
7 # QEMU unconditionally rewrites /tmp to /var/tmp but snaps cannot access
8 # that location with strict confinement. The path is still /tmp but does
9 # not compare to /tmp exactly.
10 export TMPDIR=/tmp/./
11 fi
12
13 # Execute subsequent element of the command-chain.
14 exec "$@"