Browse Source

Fixed "check returncode"

master
Bandie 3 years ago
parent
commit
f9456be2ec
Signed by: Bandie GPG Key ID: C1E133BC65A822DD
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/grub2-se-verifyserv.c

+ 2
- 2
src/grub2-se-verifyserv.c View File

@ -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){


Loading…
Cancel
Save