summaryrefslogtreecommitdiffstats
path: root/source3/param
diff options
context:
space:
mode:
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 8c048ad0798..ad9bf83886d 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -1395,11 +1395,26 @@ check if a config file has changed date
BOOL lp_file_list_changed(void)
{
struct file_lists *f = file_lists;
- while (f) {
+ DEBUG(6,("lp_file_list_changed()\n"));
+
+ while (f)
+ {
pstring n2;
+ time_t mod_time;
+
strcpy(n2,f->name);
standard_sub_basic(n2);
- if (f->modtime != file_modtime(n2)) return(True);
+
+ DEBUG(6,("file %s -> %s last mod_time: %s\n",
+ f->name, n2, ctime(&f->modtime)));
+
+ mod_time = file_modtime(n2);
+
+ if (f->modtime != mod_time)
+ {
+ DEBUG(6,("file %s modified: %s\n", n2, ctime(&mod_time)));
+ return(True);
+ }
f = f->next;
}
return(False);