Update packelf.sh

Fix permissions bug when executing different binaries with different users.
This commit is contained in:
q3aql 2024-06-22 18:56:14 +02:00
parent 40e0aeb2e3
commit f9220e331f

View File

@ -102,7 +102,7 @@ unpack() {
if [ -n "$PACKELF_TMP_DIR" ]; then
unpack_dir="$PACKELF_TMP_DIR"
else
tmp_parent=/tmp/packelf_tmp
tmp_parent=/tmp
mkdir -p "$tmp_parent"
unpack_dir=$(mktemp -d -p "$tmp_parent" || echo "$tmp_parent")
fi