diff options
Diffstat (limited to 'g10/g10.c')
-rw-r--r-- | g10/g10.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -849,11 +849,11 @@ main( int argc, char **argv ) if( cmd != aDeArmor && cmd != aEnArmor && !(cmd == aKMode && argc == 2 ) ) { - if( !sec_nrings || default_keyring ) /* add default secret rings */ + if( !sec_nrings && default_keyring ) /* add default secret rings */ add_keyblock_resource("secring.gpg", 0, 1); for(sl = sec_nrings; sl; sl = sl->next ) add_keyblock_resource( sl->d, 0, 1 ); - if( !nrings || default_keyring ) /* add default ring */ + if( !nrings && default_keyring ) /* add default ring */ add_keyblock_resource("pubring.gpg", 0, 0); for(sl = nrings; sl; sl = sl->next ) add_keyblock_resource( sl->d, 0, 0 ); |