[gnutls-devel] [feature request] certtool: Cleanup output file on error
tn at osimis.io
Thu Sep 29 14:01:58 CEST 2016
Currently the output file (as specified with --outfile) is created no
matter what and left behind in case of an error.
$ file foo
foo: cannot open `foo' (No such file or directory)
$ certtool --generate-request --load-privkey=foo --outfile=bar
Generating a PKCS #10 certificate request...
reading --load-privkey: foo
$ echo $?
$ file bar
$ certtool --version=v
$ rpm --query gnutls-utils
These semantics are definitely OK, but I find they make it a little bit
cumbersome to use certtool in automated procedures that can't afford to
leave empty files around.
Would it be reasonable for --outfile to remove the file in case of an
error, or even avoid creating it (or just avoid linking it) in the
first place when it errors-out?
Side-request: Some diagnostic messages on stderr would be NTH as well.
Thank you for considering this.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: This is a digitally signed message part
More information about the Gnutls-devel