From 02674ea801a4fa1e9032d612d20d6370e53c066c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Oct 1997 23:22:03 +0000 Subject: update the timestamp on config files in our linked list when we notice they have changed, otherwise we keep reading them again and again (This used to be commit 38c07fa932488542dbb687f8e0eca192d5f38a8e) --- source3/param/loadparm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 1568e3abf5..9f47f14be5 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -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; } -- cgit