correct is_cpu_vulnerable() comment
As far as I can tell, the function and usage are correct for the comment to be inverted. Add a clarifying note as to why the value choice makes sense.
This commit is contained in:
parent
dce917bfbb
commit
e6a2c60dc5
|
@ -151,7 +151,8 @@ _debug()
|
|||
is_cpu_vulnerable()
|
||||
{
|
||||
# param: 1, 2 or 3 (variant)
|
||||
# returns 1 if vulnerable, 0 if not vulnerable, 255 on error
|
||||
# returns 0 if vulnerable, 1 if not vulnerable, 255 on error
|
||||
# (note that in shell, a return of 0 is success)
|
||||
# by default, everything is vulnerable, we work in a "whitelist" logic here.
|
||||
# usage: is_cpu_vulnerable 2 && do something if vulnerable
|
||||
variant1=0
|
||||
|
|
Loading…
Reference in New Issue