diff options
author | Luke Leighton <lkcl@samba.org> | 1997-09-05 17:16:21 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-09-05 17:16:21 +0000 |
commit | 72af2c1831beedc3c04bce6fc3c295accd8326b5 (patch) | |
tree | 91faeb9b6170998b8c785dfc2a4d288fdb1e5f9a /source3 | |
parent | d6fc4eb405d83c3a54e47857758886adf417f2f6 (diff) | |
download | samba-72af2c1831beedc3c04bce6fc3c295accd8326b5.tar.gz samba-72af2c1831beedc3c04bce6fc3c295accd8326b5.tar.bz2 samba-72af2c1831beedc3c04bce6fc3c295accd8326b5.zip |
added debug reporting to file listing / mod_time() checking routine.
lp_file_list_changed().
(This used to be commit 727fcfae1b62bb509f0a9f5304dad363ef38345a)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/param/loadparm.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 8c048ad079..ad9bf83886 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); |