1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-05-24 16:43:28 +02: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 ) switch( pargs.r_opt )
{ {
case aCheckKeys:
case aListConfig: case aListConfig:
case aListGcryptConfig: case aListGcryptConfig:
case aGPGConfList: case aGPGConfList:
case aGPGConfTest: 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 aListPackets:
case aImport: case aImport:
case aFastImport: case aFastImport:
@ -3789,6 +3794,8 @@ main (int argc, char **argv)
case aGenRandom: case aGenRandom:
case aDeArmor: case aDeArmor:
case aEnArmor: case aEnArmor:
case aListConfig:
case aListGcryptConfig:
break; break;
case aFixTrustDB: case aFixTrustDB:
case aExportOwnerTrust: case aExportOwnerTrust: