Commit 492bf4fd authored by Stephane Rochoy's avatar Stephane Rochoy Committed by Wojciech Macek
Browse files

veriexec: Fix veriexec -i's confusion between loaded and locked states

Calling veriexec -i locked return the state of loaded and vice-versa.

Differential revision:	https://reviews.freebsd.org/D30952
Reviewed by:		sjg,imp
Obtained from:		Stromshield
parent d2c23317
......@@ -91,7 +91,7 @@ main(int argc, char *argv[])
ctl = VERIEXEC_STATE_ENFORCE;
break;
case 'l': /* loaded/locked */
ctl = (strncmp(optarg, "lock", 4)) ?
ctl = (strncmp(optarg, "lock", 4) == 0) ?
VERIEXEC_STATE_LOCKED :
VERIEXEC_STATE_LOADED;
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment