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:
parent
fde9fa81d3
commit
38d369de13
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user