* trustdb.c (init_trustdb, get_validity): Don't use a changed trust model
authorDavid Shaw <dshaw@jabberwocky.com>
Wed, 15 Jan 2003 17:07:54 +0000 (17:07 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Wed, 15 Jan 2003 17:07:54 +0000 (17:07 +0000)
to indicate a dirty trustdb, and never auto-rebuild a dirty trustdb with
the "always" trust model.

* g10.c (add_group): Last commit missed the \t ;)

g10/ChangeLog
g10/g10.c
g10/trustdb.c

index af41543..d10d8f3 100644 (file)
@@ -1,3 +1,11 @@
+2003-01-15  David Shaw  <dshaw@jabberwocky.com>
+
+       * trustdb.c (init_trustdb, get_validity): Don't use a changed
+       trust model to indicate a dirty trustdb, and never auto-rebuild a
+       dirty trustdb with the "always" trust model.
+
+       * g10.c (add_group): Last commit missed the \t ;)
+
 2003-01-14  David Shaw  <dshaw@jabberwocky.com>
 
        * packet.h, parse-packet.c (setup_user_id), free-packet.c
index d845d84..07816a2 100644 (file)
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -859,7 +859,7 @@ static void add_group(char *string)
     }
 
   /* Break apart the values */
-  while ((value= strsep(&string," ")))
+  while ((value= strsep(&string," \t")))
     {
       if (*value)
         add_to_strlist2 (&values,value,utf8_strings);
index e0e29f1..7f38bbc 100644 (file)
@@ -425,7 +425,8 @@ init_trustdb()
   if( rc )
     log_fatal("can't init trustdb: %s\n", g10_errstr(rc) );
 
-  if(!tdbio_db_matches_options())
+  if(!tdbio_db_matches_options()
+     && (opt.trust_model==TM_CLASSIC || opt.trust_model==TM_OPENPGP))
     pending_check_trustdb=1;
 }
 
@@ -971,7 +972,8 @@ get_validity (PKT_public_key *pk, PKT_user_id *uid)
     namehash_from_uid(uid);
   
   init_trustdb ();
-  if (!did_nextcheck)
+  if (!did_nextcheck
+      && (opt.trust_model==TM_CLASSIC || opt.trust_model==TM_OPENPGP))
     {
       ulong scheduled;