mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Support log-file option from common.conf for all daemon.
* agent/gpg-agent.c: Include comopt.h. (main): Read log-file option from common.conf. (reread_configuration): Ditto. * dirmngr/dirmngr.c: Include comopt.h. (main): Read log-file option from common.conf. (reread_configuration): Ditto. * kbx/keyboxd.c: Include comopt.h. (main): Read log-file option from common.conf. (reread_configuration): Ditto. * scd/scdaemon.c: Include comopt.h. (main): Read log-file option from common.conf. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
b657d6c3bd
commit
45918813f0
4 changed files with 97 additions and 5 deletions
|
@ -54,6 +54,7 @@
|
|||
#include "../common/gc-opt-flags.h"
|
||||
#include "../common/asshelp.h"
|
||||
#include "../common/exechelp.h"
|
||||
#include "../common/comopt.h"
|
||||
#include "../common/init.h"
|
||||
|
||||
#ifndef ENAMETOOLONG
|
||||
|
@ -652,6 +653,17 @@ main (int argc, char **argv )
|
|||
|
||||
if (log_get_errorcount(0))
|
||||
exit(2);
|
||||
|
||||
/* Process common component options. */
|
||||
if (parse_comopt (GNUPG_MODULE_NAME_SCDAEMON, debug_argparser))
|
||||
exit(2);
|
||||
|
||||
if (!logfile)
|
||||
{
|
||||
logfile = comopt.logfile;
|
||||
comopt.logfile = NULL;
|
||||
}
|
||||
|
||||
if (nogreeting )
|
||||
greeting = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue