m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-16 19:57:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-16 19:57:18 +0200
commiteb87d5dee176f8d7057d05d24302040ab1b56768 (patch)
tree26ccd0b54d63842b8717d1150438cac635834b52 /src
parent3f250ecca3da1e2dcf0a85d788e286a0b7212967 (diff)
Apparantly we can't get a secure tmpdir on freebsd.
Diffstat (limited to 'src')
-rw-r--r--src/platform/freebsd.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/platform/freebsd.sh b/src/platform/freebsd.sh
index d2b8163..d93c774 100644
--- a/src/platform/freebsd.sh
+++ b/src/platform/freebsd.sh
@@ -1,19 +1,5 @@
# Copyright (C) 2012 Jonathan Chu <milki@rescomp.berkeley.edu>. All Rights Reserved.
# This file is licensed under the GPLv2+. Please see COPYING for more information.
-tmpdir() {
- local ramdisk="/var/tmp/password-store.ramdisk"
- if [[ -d $ramdisk && -d $ramdisk && -d $ramdisk ]]; then
- SECURE_TMPDIR="$(TMPDIR=$ramdisk mktemp -t "$template" -d)"
- else
- yesno "$(echo "A ramdisk does not exist at $ramdisk, which means that it may"
- echo "be difficult to entirely erase the temporary non-encrypted"
- echo "password file after editing. Are you sure you would like to"
- echo -n "continue?")"
-
- SECURE_TMPDIR="$(mktemp -t "$template" -d)"
- fi
-}
-
GETOPT="/usr/local/bin/getopt"
SHRED="rm -P -f"