File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2060,7 +2060,8 @@ implemented.
2060
2060
@item -- batch
2061
2061
@opindex batch
2062
2062
Use batch mode. Never ask but use the default action. This option is
2063
- passed directly to @command {gpg }.
2063
+ passed directly to @command {gpg }. This option is also required to
2064
+ activate the @option {log-file } in @file {common.conf } for this program.
2064
2065
2065
2066
@item -- yes
2066
2067
@opindex yes
Original file line number Diff line number Diff line change @@ -496,8 +496,11 @@ main (int argc, char **argv)
496
496
if (log_get_errorcount (0 ))
497
497
exit (2 );
498
498
499
- /* Get a log file from common.conf. */
500
- if (!parse_comopt (GNUPG_MODULE_NAME_GPGTAR , any_debug ) && comopt .logfile )
499
+ /* Get a log file from common.conf but use it only in --batch mode
500
+ * because people expect to see the verbose output here even if they
501
+ * have a log-file in their common.conf. */
502
+ if (!parse_comopt (GNUPG_MODULE_NAME_GPGTAR , any_debug ) && comopt .logfile
503
+ && opt .batch )
501
504
log_set_file (comopt .logfile );
502
505
503
506
/* Print a warning if an argument looks like an option. */
You can’t perform that action at this time.
0 commit comments