mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-27 22:32:31 +02:00
ima-evm-utils: Never exit with -1 code
Change main() return code from -1 to 125 as -1 is not really valid exit code. 125 is choosen because exit codes for signals start from 126. Signed-off-by: Vitaly Chikunov <vt@altlinux.org> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
fbba18c477
commit
9c2298c367
@ -2114,6 +2114,8 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
log_err("%s\n", ERR_error_string(error, NULL));
|
||||
}
|
||||
if (err < 0)
|
||||
err = 125;
|
||||
}
|
||||
|
||||
if (eng) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user