mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
gpg: Do not require --batch when using --log-file.
* g10/gpg.c (main): Remove a long standing FIXME. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
c6be407251
commit
584b65ad7e
@ -3758,11 +3758,7 @@ main (int argc, char **argv)
|
|||||||
assuan_set_system_hooks (ASSUAN_SYSTEM_NPTH);
|
assuan_set_system_hooks (ASSUAN_SYSTEM_NPTH);
|
||||||
gpgrt_set_syscall_clamp (npth_unprotect, npth_protect);
|
gpgrt_set_syscall_clamp (npth_unprotect, npth_protect);
|
||||||
|
|
||||||
/* FIXME: We should use logging to a file only in server mode;
|
if (logfile)
|
||||||
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)
|
|
||||||
{
|
{
|
||||||
log_set_file (logfile);
|
log_set_file (logfile);
|
||||||
log_set_prefix (NULL, (GPGRT_LOG_WITH_PREFIX
|
log_set_prefix (NULL, (GPGRT_LOG_WITH_PREFIX
|
||||||
|
Loading…
x
Reference in New Issue
Block a user