diff --git a/g10/gpg.c b/g10/gpg.c index 3332525d8..f5623be76 100644 --- a/g10/gpg.c +++ b/g10/gpg.c @@ -3723,12 +3723,6 @@ main (int argc, char **argv) g10_exit(2); } - if (!logfile) - { - logfile = comopt.logfile; - comopt.logfile = NULL; - } - if (opt.use_keyboxd) log_info ("Note: Please move option \"%s\" to \"common.conf\"\n", "use-keyboxd"); diff --git a/sm/gpgsm.c b/sm/gpgsm.c index ca30358ec..f488eb5e8 100644 --- a/sm/gpgsm.c +++ b/sm/gpgsm.c @@ -1008,7 +1008,6 @@ main ( int argc, char **argv) estream_t htmlauditfp = NULL; struct assuan_malloc_hooks malloc_hooks; int pwfd = -1; - int no_logfile = 0; static const char *homedirvalue; static const char *changeuser; @@ -1359,7 +1358,7 @@ main ( int argc, char **argv) break; case oLogFile: logfile = pargs.r.ret_str; break; - case oNoLogFile: logfile = NULL; no_logfile = 1; break; + case oNoLogFile: logfile = NULL; break; case oAuditLog: auditlog = pargs.r.ret_str; break; case oHtmlAuditLog: htmlauditlog = pargs.r.ret_str; break; @@ -1626,12 +1625,6 @@ main ( int argc, char **argv) gpgsm_exit(2); } - if (!logfile && !no_logfile) - { - logfile = comopt.logfile; - comopt.logfile = NULL; - } - if (opt.use_keyboxd) log_info ("Note: Please move option \"%s\" to \"common.conf\"\n", "use-keyboxd");