diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-10-19 23:22:03 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-10-19 23:22:03 +0000 |
commit | 02674ea801a4fa1e9032d612d20d6370e53c066c (patch) | |
tree | 14306381daa49935ef1ba529d67a8955ec40ec0a /source3 | |
parent | 0c1d45dfa4d2bd780a4d5c8f2b804018c8b4939b (diff) | |
download | samba-02674ea801a4fa1e9032d612d20d6370e53c066c.tar.gz samba-02674ea801a4fa1e9032d612d20d6370e53c066c.tar.bz2 samba-02674ea801a4fa1e9032d612d20d6370e53c066c.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
(This used to be commit 38c07fa932488542dbb687f8e0eca192d5f38a8e)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/param/loadparm.c | 8 |
1 files 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; } |