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