strncasecmp in nodelist find (prelim)
All checks were successful
Altlinux build / build-alt (push) Successful in 2m44s
Archlinux build / build-arch (push) Successful in 3m0s
Archlinux build / make-test (push) Successful in 57s
Debian build / build-ubuntu (push) Successful in 3m46s

This commit is contained in:
Alexey Khromov 2025-05-02 23:16:22 +03:00
parent 07b64ce968
commit d5b3905528
Signed by: zx
GPG Key ID: 140ECD72EFEBD387

View File

@ -521,6 +521,7 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
if( strlen(tmpseek) == strlen(tmpname) ) if( strlen(tmpseek) == strlen(tmpname) )
{ {
// strncasecmp?
if( (strncmp(tmpseek, tmpname, strlen(tmpseek)-3 ) == 0) ) if( (strncmp(tmpseek, tmpname, strlen(tmpseek)-3 ) == 0) )
{ {
@ -541,7 +542,7 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
closedir(ndirstream); closedir(ndirstream);
} }
} }
// strncasecmp? - seems to be hardcoded '999'
if( strcmp(name+strlen(name)-4, ".999") == 0 ) if( strcmp(name+strlen(name)-4, ".999") == 0 )
/* we haven`t found any nodelist for this mask */ /* we haven`t found any nodelist for this mask */
{ {