1
0
mirror of https://git.code.sf.net/p/linux-ima/ima-evm-utils synced 2025-04-28 06:33:36 +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:
Vitaly Chikunov 2019-07-27 06:19:00 +03:00 committed by Mimi Zohar
parent fbba18c477
commit 9c2298c367

View File

@ -2114,6 +2114,8 @@ int main(int argc, char *argv[])
break; break;
log_err("%s\n", ERR_error_string(error, NULL)); log_err("%s\n", ERR_error_string(error, NULL));
} }
if (err < 0)
err = 125;
} }
if (eng) { if (eng) {