mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 22:56:58 -04:00
check_procs -- exchange needle and haystack in strstr() for proper state match
This commit is contained in:
parent
180e069169
commit
8eaccee190
1 changed files with 1 additions and 1 deletions
|
|
@ -265,7 +265,7 @@ main (int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
if ((options & STAT) && (strstr (statopts, procstat)))
|
||||
if ((options & STAT) && (strstr (procstat, statopts)))
|
||||
resultsum |= STAT;
|
||||
if ((options & ARGS) && procargs && (strstr (procargs, args) != NULL))
|
||||
resultsum |= ARGS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue