gpg: Do not require --batch when using --log-file.
authorWerner Koch <wk@gnupg.org>
Wed, 6 Nov 2019 13:44:50 +0000 (14:44 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 6 Nov 2019 13:44:50 +0000 (14:44 +0100)
* g10/gpg.c (main): Remove a long standing FIXME.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/gpg.c

index b9b6de4..cbdf68d 100644 (file)
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -3758,11 +3758,7 @@ main (int argc, char **argv)
     assuan_set_system_hooks (ASSUAN_SYSTEM_NPTH);
     gpgrt_set_syscall_clamp (npth_unprotect, npth_protect);
 
-    /* FIXME: We should use logging to a file only in server mode;
-       however we have not yet implemetyed that.  Thus we try to get
-       away with --batch as indication for logging to file
-       required. */
-    if (logfile && opt.batch)
+    if (logfile)
       {
         log_set_file (logfile);
         log_set_prefix (NULL, (GPGRT_LOG_WITH_PREFIX