Commit b56bdb71 authored by Leigh B Stoller's avatar Leigh B Stoller

Remove temp file if certificate verification fails.

parent a467f326
#!/usr/bin/perl -wT #!/usr/bin/perl -wT
# #
# Copyright (c) 2008-2012 University of Utah and the Flux Group. # Copyright (c) 2008-2013 University of Utah and the Flux Group.
# #
# {{{GENIPUBLIC-LICENSE # {{{GENIPUBLIC-LICENSE
# #
...@@ -409,6 +409,7 @@ sub CreateFromSigned($$;$) ...@@ -409,6 +409,7 @@ sub CreateFromSigned($$;$)
close($fh); close($fh);
my $output = GeniUtil::ExecQuiet("$VERIFYCRED $filename"); my $output = GeniUtil::ExecQuiet("$VERIFYCRED $filename");
if ($?) { if ($?) {
unlink($filename);
$msg = $output; $msg = $output;
goto bad; goto bad;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment