mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01:00
* g10.c (main): Must register the secring for encryption because
it is needed to figure out the default recipient. Reported by Roger Sondermann.
This commit is contained in:
parent
dfd091cf52
commit
c930e300a8
@ -1,3 +1,9 @@
|
||||
2002-01-08 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* g10.c (main): Must register the secring for encryption because
|
||||
it is needed to figure out the default recipient. Reported by
|
||||
Roger Sondermann.
|
||||
|
||||
2002-01-05 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* keyedit.c (menu_adduid): Require --expert before adding a photo
|
||||
|
@ -1451,14 +1451,14 @@ main( int argc, char **argv )
|
||||
|
||||
/* Add the keyrings, but not for some special commands and not in
|
||||
case of "-kvv userid keyring". Also avoid adding the secret
|
||||
keyring for a couple of commands to avaoid unneeded access in
|
||||
keyring for a couple of commands to avoid unneeded access in
|
||||
case the secrings are stored on a floppy */
|
||||
if( cmd != aDeArmor && cmd != aEnArmor
|
||||
&& !(cmd == aKMode && argc == 2 ) )
|
||||
{
|
||||
if (cmd != aCheckKeys && cmd != aListSigs && cmd != aListKeys
|
||||
&& cmd != aVerify && cmd != aVerifyFiles
|
||||
&& cmd != aEncr && cmd != aSym)
|
||||
&& cmd != aSym)
|
||||
{
|
||||
if (!sec_nrings || default_keyring) /* add default secret rings */
|
||||
keydb_add_resource ("secring" EXTSEP_S "gpg", 0, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user