Fx nodelist_checkflag
All checks were successful
Altlinux build / build-alt (push) Successful in 2m37s
Archlinux build / build-arch (push) Successful in 2m56s
Archlinux build / make-test (push) Successful in 58s
Debian build / build-ubuntu (push) Successful in 3m40s

This commit is contained in:
Alexey Khromov 2025-04-24 06:14:38 +03:00
parent a2479e18f0
commit 7903fd08af

View File

@ -60,7 +60,7 @@ int nodelist_checkflag(const char *nodeflags, const char *flag)
if ( nodeflags ) {
while( p = strcasestr(searchbase, flag) ) // p - found flag
{
if (*(p-1) == ',')
if ( ((p == searchbase)) || (*(p-1) == ','))
{
if( (q = strchr(p, ',')) == NULL || (q - p) == strlen(flag) ) {
DEB((D_NODELIST, "nodelist: found flag %s", flag));