Browse Source

Brackets.

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

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

@ -48,9 +48,9 @@ void exec_failed(){
void sig_handler(int signo){
if(signo == SIGTERM || signo == SIGINT){
// Unverify
if(access(VRFFILE, F_OK) != -1){ //File exists?
if(access(VRFFILE, F_OK) != -1) //File exists?
unlink(VRFFILE);
}
exit(0);
}
}
@ -84,15 +84,15 @@ int main(int argc, char *argv[]){
dup2(fd, 1);
dup2(fd, 2);
if(execlp(PROGRAM, PROGRAM, NULL) < 0){
if(execlp(PROGRAM, PROGRAM, NULL) < 0)
exec_failed();
}
close(fd);
}
else{
if(execlp(PROGRAM, PROGRAM, NULL) < 0){
if(execlp(PROGRAM, PROGRAM, NULL) < 0)
exec_failed();
}
}
}
else {


Loading…
Cancel
Save