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:
parent
7c1d063fc7
commit
a9bd4a410d
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user