1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-02-01 16:33:02 +01:00

gpg: Avoid homedir creation by --list-config

* g10/gpg.c (main): Do not register a key for the list config
commands.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-09-01 19:22:48 +02:00
parent fde9fa81d3
commit 38d369de13
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -2377,11 +2377,16 @@ main (int argc, char **argv)
{
switch( pargs.r_opt )
{
case aCheckKeys:
case aListConfig:
case aListGcryptConfig:
case aGPGConfList:
case aGPGConfTest:
set_cmd (&cmd, pargs.r_opt);
/* Do not register a keyring for these commands. */
default_keyring = -1;
break;
case aCheckKeys:
case aListPackets:
case aImport:
case aFastImport:
@ -3789,6 +3794,8 @@ main (int argc, char **argv)
case aGenRandom:
case aDeArmor:
case aEnArmor:
case aListConfig:
case aListGcryptConfig:
break;
case aFixTrustDB:
case aExportOwnerTrust: