From f9456be2ec327b8c8fe1847a2e1332293cdc25dd Mon Sep 17 00:00:00 2001 From: Bandie Date: Mon, 19 Mar 2018 20:43:15 +0100 Subject: [PATCH] Fixed "check returncode" --- src/grub2-se-verifyserv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grub2-se-verifyserv.c b/src/grub2-se-verifyserv.c index 8964a87..6869197 100644 --- a/src/grub2-se-verifyserv.c +++ b/src/grub2-se-verifyserv.c @@ -100,9 +100,9 @@ int main(int argc, char *argv[]){ wait(&statval); if(verbose) - printf("Exit: %d\n", statval); + printf("Exit: %d\n", WEXITSTATUS(statval)); - if(statval == STATUS_OK){ + if(WEXITSTATUS(statval) == STATUS_OK){ // If exit is STATUS_OK, write file with nothing in it FILE *f = fopen(VRFFILE, "w"); if(f == NULL){