Fx nodelist_checkflag
This commit is contained in:
parent
a2479e18f0
commit
7903fd08af
@ -60,7 +60,7 @@ int nodelist_checkflag(const char *nodeflags, const char *flag)
|
|||||||
if ( nodeflags ) {
|
if ( nodeflags ) {
|
||||||
while( p = strcasestr(searchbase, flag) ) // p - found flag
|
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) ) {
|
if( (q = strchr(p, ',')) == NULL || (q - p) == strlen(flag) ) {
|
||||||
DEB((D_NODELIST, "nodelist: found flag %s", flag));
|
DEB((D_NODELIST, "nodelist: found flag %s", flag));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user