X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/de65ad1e2991ea87a878483a010cfaf3d4600702..a83d50d5a64488deb3796bbd0ca0a03b0516cc77:/.mutt/bgrun?ds=sidebyside diff --git a/.mutt/bgrun b/.mutt/bgrun index c19920f..ad432df 100755 --- a/.mutt/bgrun +++ b/.mutt/bgrun @@ -83,7 +83,7 @@ guess_extension() { get_file() { local t if [ -z "$1" ]; then - t=$(TMPDIR="$PWD" tempfile -s $(guess_extension "$MIMETYPE")) + t=$(mktemp -p "$PWD" tmp.XXXXXXXXXX.$(guess_extension "$MIMETYPE")) cat > "$t" echo "$t" else