1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Fix --output option used when with --export-secret-kety-p12.

This commit is contained in:
Werner Koch 2008-05-20 08:00:40 +00:00
parent 7d714a3788
commit ee3a1ec0d8
4 changed files with 8 additions and 3 deletions

View file

@ -1808,7 +1808,7 @@ main ( int argc, char **argv)
FILE *fp = open_fwrite (opt.outfile?opt.outfile:"-");
if (argc == 1)
gpgsm_p12_export (&ctrl, *argv, stdout);
gpgsm_p12_export (&ctrl, *argv, fp);
else
wrong_args ("--export-secret-key-p12 KEY-ID");
if (fp != stdout)