1
0
mirror of https://github.com/Yubico/yubikey-ksm.git synced 2025-03-16 03:29:20 +01:00

Cleanup temp file properly.

This commit is contained in:
Simon Josefsson 2009-02-25 07:18:49 +00:00
parent 7c1d063fc7
commit a9bd4a410d

View File

@ -97,6 +97,8 @@ while (<>) {
}
close TMPFILE;
END { unlink $infilename; }
# Get status
open(GPGV, "gpg --status-fd 1 --output /dev/null < $infilename 2>&1 |")
or die "Cannot launch gpg";
@ -152,7 +154,6 @@ while (<GPGV>) {
}
print "\n";
unlink $infilename;
close GPGV;
$dbh->disconnect();