commit 83a735d6d19843c8b09ae298f585c2cb3b12f331 from: Matthias via: thexhr date: Mon Oct 05 09:49:20 2020 UTC Although nuke_file is in the code it was never called Call the function before it is actually used so that the file is really shredded. commit - 0bb04f0b5279265edc67c0fea6f3fab52c5d9edf commit + 83a735d6d19843c8b09ae298f585c2cb3b12f331 blob - c6650f20bae5f7f385a95a61a47e1263bf5edb24 blob + d751f0f910601fbafb093c92da0b685fe9fe3baa --- tpm +++ tpm @@ -176,6 +176,8 @@ remove_entry() { [ -z "${_entry_name}" ] && abort "rm needs an argument" entry_exists ${_entry_name} + + nuke_file echo -n "$0: Really remove ${_entry_name} [y/N]? " read -r _answer @@ -201,6 +203,8 @@ edit_entry() { entry_exists ${_entry_name} + nuke_file + choose_tmp _tmpfile=$(mktemp ${TMPDIR}/tpm.XXXXXXXXXX) || abort "Cannot create temporary file" trap "${NUKE} -f ${_tmpfile}; exit 0" 0 1 2 3 15