password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit c31bbd546a9be36f335345a9dad33676de2dbcb6
parent 51f9b6888ce1640c887c308d869c5f716d071430
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date:   Tue, 18 Mar 2014 23:32:46 -0600

Shred shm files.

Diffstat:
Msrc/password-store.sh | 3++-
Msrc/platform/darwin.sh | 1+
Msrc/platform/freebsd.sh | 1+
3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/password-store.sh b/src/password-store.sh @@ -120,6 +120,7 @@ tmpdir() { } GETOPT="getopt" +SHRED="shred -f -z" # source /path/to/platform-defined-functions # @@ -288,7 +289,7 @@ case "$command" in passfile="$PREFIX/$path.gpg" template="$program.XXXXXXXXXXXXX" - trap 'rm -rf "$tmp_dir" "$tmp_file"' INT TERM EXIT + trap '$SHRED "$tmp_file"; rm -rf "$tmp_dir" "$tmp_file"' INT TERM EXIT tmpdir #Defines $tmp_dir tmp_file="$(TMPDIR="$tmp_dir" mktemp -t "$template")" diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh @@ -32,3 +32,4 @@ tmpdir() { } GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || echo /usr/local)/bin/getopt" +SHRED="srm -f -z" diff --git a/src/platform/freebsd.sh b/src/platform/freebsd.sh @@ -16,3 +16,4 @@ tmpdir() { } GETOPT="/usr/local/bin/getopt" +SHRED="rm -P -f"