mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
added debug reporting to file listing / mod_time() checking routine.
lp_file_list_changed(). (This used to be commit 727fcfae1b62bb509f0a9f5304dad363ef38345a)
This commit is contained in:
parent
d6fc4eb405
commit
72af2c1831
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user