Skip to content
Snippets Groups Projects
Commit eb87d5de authored by Jason A. Donenfeld's avatar Jason A. Donenfeld
Browse files

Apparantly we can't get a secure tmpdir on freebsd.

parent 3f250ecc
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2012 Jonathan Chu <milki@rescomp.berkeley.edu>. All Rights Reserved. # 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. # 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" GETOPT="/usr/local/bin/getopt"
SHRED="rm -P -f" SHRED="rm -P -f"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment