From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 13 Jan 2013 15:38:14 +0000 (+0000)
Subject: Let any_loaded_file_changed() check the trustfile as well
X-Git-Tag: v_3_0_20~40
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/static/@default-cgi@edit-actions-add-url-form?a=commitdiff_plain;h=7f324d0e5524d503f10cbea6a80f366530a20dc5;p=privoxy.git

Let any_loaded_file_changed() check the trustfile as well
---

diff --git a/loaders.c b/loaders.c
index ae4f9c0c..2a42b0dd 100644
--- a/loaders.c
+++ b/loaders.c
@@ -1,4 +1,4 @@
-const char loaders_rcs[] = "$Id: loaders.c,v 1.93 2012/10/21 12:53:33 fabiankeil Exp $";
+const char loaders_rcs[] = "$Id: loaders.c,v 1.94 2012/12/07 12:43:05 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/loaders.c,v $
@@ -1480,6 +1480,16 @@ int any_loaded_file_changed(const struct client_state *csp)
       }
    }
 
+#ifdef FEATURE_TRUST
+   if (csp->tlist)
+   {
+      if (file_has_been_modified(csp->tlist->filename, csp->tlist->lastmodified))
+      {
+         return TRUE;
+      }
+   }
+#endif /* def FEATURE_TRUST */
+
    return FALSE;
 }