tedited managing of tmpfile - gtomb - tomb gtk frontend in zenity HTML git clone git://parazyd.org/gtomb.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit b716780bea4c7adf702f172f3470cf45d27ea426 DIR parent afc3769668466d11b8187dc0617f8a93dcef33c9 HTML Author: parazyd <parazyd@gmx.com> Date: Mon, 30 Nov 2015 14:57:11 +0100 edited managing of tmpfile Diffstat: M gtomb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- DIR diff --git a/gtomb b/gtomb t@@ -188,7 +188,11 @@ function _clean { tombsize="$rr"; unset tombsize keyfile="$rr"; unset keyfile sudoassword="$rr"; unset sudoassword - rm -f $tombtmp # See for srm/wipe/etc. + if [ -f $tombtmp ] + then + dd if=/dev/urandom of=$tombtmp bs=800 count=1 + rm -f $tombtmp # See for srm/wipe/etc. + fi tombtmp="$rr"; unset tombtmp newkey="$rr"; unset newkey jpegfile="$rr"; unset jpegfile