mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Replace use of opt.homedir by accessor functions.
* common/homedir.c (the_gnupg_homedir): New var. (gnupg_set_homedir): New. (gnupg_homedir): New. * g10/options.h (struct opt): Remove 'homedir' and replace all users by the new accessor functions. * g13/g13-common.h (struct opt): Ditto. * scd/scdaemon.h (struct opt): Ditto. * sm/gpgsm.h (struct opt): Ditto. * dirmngr/dirmngr.h (struct opt): Ditto. * agent/preset-passphrase.c (opt_homedir): Ditto. * agent/protect-tool.c (opt_homedir): Ditto. -- This will make detection of a non-default homedir easier. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
650abbab71
commit
22a7ef01aa
44 changed files with 188 additions and 179 deletions
|
@ -1308,7 +1308,7 @@ gpgsm_server (certlist_t default_recplist)
|
|||
}
|
||||
if (opt.verbose || opt.debug)
|
||||
{
|
||||
char *tmp = NULL;
|
||||
char *tmp;
|
||||
|
||||
/* Fixme: Use the really used socket name. */
|
||||
if (asprintf (&tmp,
|
||||
|
@ -1316,7 +1316,7 @@ gpgsm_server (certlist_t default_recplist)
|
|||
"Config: %s\n"
|
||||
"DirmngrInfo: %s\n"
|
||||
"%s",
|
||||
opt.homedir,
|
||||
gnupg_homedir (),
|
||||
opt.config_filename,
|
||||
(dirmngr_user_socket_name ()
|
||||
? dirmngr_user_socket_name ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue