summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/platform/darwin.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh
index 24bd048..9cc773d 100644
--- a/src/platform/darwin.sh
+++ b/src/platform/darwin.sh
@@ -24,7 +24,7 @@ tmpdir() {
rm -rf "$SECURE_TMPDIR"
}
trap unmount_tmpdir INT TERM EXIT
- SECURE_TMPDIR="$(mktemp -t "$template" -d)"
+ SECURE_TMPDIR="$(mktemp -d -t "$PROGRAM")"
DARWIN_RAMDISK_DEV="$(hdid -drivekey system-image=yes -nomount 'ram://32768' | cut -d ' ' -f 1)" # 32768 sectors = 16 mb
[[ -z $DARWIN_RAMDISK_DEV ]] && die "Error: could not create ramdisk."
newfs_hfs -M 700 "$DARWIN_RAMDISK_DEV" &>/dev/null || die "Error: could not create filesystem on ramdisk."
d>1-1/+1 2007-12-06 r577@Devoty: necoro | 2007-12-06 20:37:36 +0100Necoro1-1/+1 2007-12-06 r572@Devoty: necoro | 2007-11-28 08:48:15 +0100Necoro1-0/+1 2007-11-27 r570@Devoty: necoro | 2007-11-27 02:08:21 +0100Necoro3-84/+108