|
|
|
@ -301,10 +301,11 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
|
|
|
|
|
struct stat ndfile;
|
|
|
|
|
time_t lasttime = 0;
|
|
|
|
|
struct dirent *ndir;
|
|
|
|
|
DIR *ndirstream;
|
|
|
|
|
DIR *ndirstream = NULL;
|
|
|
|
|
if( (ndirstream = opendir(dir)) == NULL )
|
|
|
|
|
{
|
|
|
|
|
log("error opening nodelist directory: %s", dir);
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@ -337,9 +338,9 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
closedir(ndirstream);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( strcmp(name+strlen(name)-4, ".999") == 0 )
|
|
|
|
|
/* we haven`t found any nodelist for this mask */
|
|
|
|
|