mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpgconf: Make runtime changes with different homedir work.
* tools/gpgconf-comp.c (dirmngr_runtime_change): Pass --homedir first.
This commit is contained in:
parent
1ca4df446f
commit
31c0aa2ff3
@ -865,15 +865,15 @@ dirmngr_runtime_change (int killflag)
|
||||
int cmdidx;
|
||||
|
||||
pgmname = gnupg_module_name (GNUPG_MODULE_NAME_CONNECT_AGENT);
|
||||
argv[i++] = "--no-autostart";
|
||||
argv[i++] = "--dirmngr";
|
||||
cmdidx = i;
|
||||
argv[i++] = killflag? "KILLDIRMNGR" : "RELOADDIRMNGR";
|
||||
if (!gnupg_default_homedir_p ())
|
||||
{
|
||||
argv[i++] = "--homedir";
|
||||
argv[i++] = gnupg_homedir ();
|
||||
}
|
||||
argv[i++] = "--no-autostart";
|
||||
argv[i++] = "--dirmngr";
|
||||
cmdidx = i;
|
||||
argv[i++] = killflag? "KILLDIRMNGR" : "RELOADDIRMNGR";
|
||||
argv[i] = NULL;
|
||||
log_assert (i < DIM(argv));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user