aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-03-31 07:05:35 +0000
committerWerner Koch <[email protected]>2005-03-31 07:05:35 +0000
commitfe01cbceb0376a4eb77b1310ac5480b1abe7a4aa (patch)
tree752d8c4936d038c959824d5201816d0abcd4c775 /g10/g10.c
parent* keyserver.c (keyserver_spawn): Don't mess about with the $PATH. (diff)
downloadgnupg-fe01cbceb0376a4eb77b1310ac5480b1abe7a4aa.tar.gz
gnupg-fe01cbceb0376a4eb77b1310ac5480b1abe7a4aa.zip
* keydb.c (keydb_add_resource): Clarify meaning of flags. Add new
flag 4. Use log_info for errors registering the default secret key. * g10.c (main): Flag the default keyrings.
Diffstat (limited to 'g10/g10.c')
-rw-r--r--g10/g10.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/g10.c b/g10/g10.c
index 93bda0523..12362172b 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -2924,7 +2924,7 @@ main( int argc, char **argv )
case the secrings are stored on a floppy.
We always need to add the keyrings if we are running under
- SELinux, thi is so that the rings are added to the list of
+ SELinux, this is so that the rings are added to the list of
secured files. */
if( ALWAYS_ADD_KEYRINGS
|| (cmd != aDeArmor && cmd != aEnArmor
@@ -2935,12 +2935,12 @@ main( int argc, char **argv )
&& cmd != aVerify && cmd != aSym))
{
if (!sec_nrings || default_keyring) /* add default secret rings */
- keydb_add_resource ("secring" EXTSEP_S "gpg", 0, 1);
+ keydb_add_resource ("secring" EXTSEP_S "gpg", 4, 1);
for (sl = sec_nrings; sl; sl = sl->next)
keydb_add_resource ( sl->d, 0, 1 );
}
if( !nrings || default_keyring ) /* add default ring */
- keydb_add_resource ("pubring" EXTSEP_S "gpg", 0, 0);
+ keydb_add_resource ("pubring" EXTSEP_S "gpg", 4, 0);
for(sl = nrings; sl; sl = sl->next )
keydb_add_resource ( sl->d, sl->flags, 0 );
}