summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-19 23:22:03 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-19 23:22:03 +0000
commit38c07fa932488542dbb687f8e0eca192d5f38a8e (patch)
treed2c2e5ae1fd39d8a88ff5b21adf1b60729d201ae
parent80523a3e83191c9e0b930fc71bd502a94a6f1b19 (diff)
downloadsamba-38c07fa932488542dbb687f8e0eca192d5f38a8e.tar.gz
samba-38c07fa932488542dbb687f8e0eca192d5f38a8e.tar.xz
samba-38c07fa932488542dbb687f8e0eca192d5f38a8e.zip
update the timestamp on config files in our linked list when we notice
they have changed, otherwise we keep reading them again and again
-rw-r--r--source/param/loadparm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 1568e3abf51..9f47f14be5a 100644
--- a/source/param/loadparm.c
+++ b/source/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;
}