*** empty log message ***

master
Evgeniy Kozhuhovskiy 20 years ago
parent cf214a52f9
commit 150c296f6e

@ -1,6 +1,8 @@
2005-01-16 Evgeniy Kozhuhovskiy <e.kozhuhovskiy@gmail.com> 2005-01-16 Evgeniy Kozhuhovskiy <e.kozhuhovskiy@gmail.com>
* bforce/nodelist.c (nodelist_open): fixed mask detection * bforce/nodelist.c (nodelist_open): fixed mask detection
* bforce/nodelist.c (nodelist_open): added tmpseekdir, contains
full path to currently seeked nodelist
2005-01-12 Andrey Slusar <anray@users.sourceforge.net> 2005-01-12 Andrey Slusar <anray@users.sourceforge.net>

@ -296,6 +296,7 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
if( strcmp(name+strlen(name)-4, ".999") == 0 ) if( strcmp(name+strlen(name)-4, ".999") == 0 )
{ {
char tmpseek[MAX_NAME]; char tmpseek[MAX_NAME];
char tmpseekdir[MAX_NAME];
char tmpname[MAX_NAME]; char tmpname[MAX_NAME];
struct dirent *ndir; struct dirent *ndir;
DIR *ndirstream; DIR *ndirstream;
@ -305,6 +306,7 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
} }
else else
{ {
strncpy(tmpname, name, sizeof(tmpname)); strncpy(tmpname, name, sizeof(tmpname));
struct stat ndfile; struct stat ndfile;
time_t lasttime = 0; time_t lasttime = 0;
@ -318,7 +320,11 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
{ {
if( (strncmp(tmpseek, tmpname, (strlen(tmpseek)-3) ) == 0) ) if( (strncmp(tmpseek, tmpname, (strlen(tmpseek)-3) ) == 0) )
{ {
if( stat(tmpseek, &ndfile) )
strncpy(tmpseekdir, dir, sizeof(tmpseekdir));
strncat(tmpseekdir, tmpseek, sizeof(tmpseekdir));
if( (stat(tmpseekdir, &ndfile)) == 0 )
{ {
if( ndfile.st_ctime > lasttime ) if( ndfile.st_ctime > lasttime )
{ {

Loading…
Cancel
Save