update the timestamp on config files in our linked list when we notice
authorAndrew Tridgell <tridge@samba.org>
Sun, 19 Oct 1997 23:22:03 +0000 (23:22 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 19 Oct 1997 23:22:03 +0000 (23:22 +0000)
they have changed, otherwise we keep reading them again and again
(This used to be commit 38c07fa932488542dbb687f8e0eca192d5f38a8e)

source3/param/loadparm.c

index 1568e3abf51679f121b41df1512c2b3a1dd6931e..9f47f14be5a5f896f548c88c18e00e83bcc4d9f7 100644 (file)
@@ -1425,10 +1425,10 @@ BOOL lp_file_list_changed(void)
 
     mod_time = file_modtime(n2);
 
-    if (f->modtime != mod_time)
-    {
-      DEBUG(6,("file %s modified: %s\n", n2, ctime(&mod_time)));
-      return(True);
+    if (f->modtime != mod_time) {
+           DEBUG(6,("file %s modified: %s\n", n2, ctime(&mod_time)));
+           f->modtime = mod_time;
+           return(True);
     }
     f = f->next;   
   }