1
0
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:
Werner Koch 2021-05-28 19:48:16 +02:00
parent 1ca4df446f
commit 31c0aa2ff3
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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));