diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-03-18 23:32:46 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-03-18 23:43:49 -0600 |
commit | c31bbd546a9be36f335345a9dad33676de2dbcb6 (patch) | |
tree | c238b5c6dee3d231e0fb0698db26eed4c46ddb1b /src/password-store.sh | |
parent | 51f9b6888ce1640c887c308d869c5f716d071430 (diff) | |
download | pass-c31bbd546a9be36f335345a9dad33676de2dbcb6.tar.gz pass-c31bbd546a9be36f335345a9dad33676de2dbcb6.tar.bz2 pass-c31bbd546a9be36f335345a9dad33676de2dbcb6.zip |
Shred shm files.
Diffstat (limited to 'src/password-store.sh')
-rwxr-xr-x | src/password-store.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh index d0a8ab8..b2e2d0c 100755 --- 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")" |