Skip to content

Commit

Permalink
1 → EXIT_FAILURE
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Feb 19, 2021
1 parent 14f6929 commit e01a3ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/userinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,20 +213,20 @@ static void pinentry_read_password(const char *pinentry, const char *hint,
close(to_pinentry[1]);
if (dup2(to_pinentry[0], STDIN_FILENO) == -1) {
perror("dup2");
exit(1);
exit(EXIT_FAILURE);
}
close(to_pinentry[0]);

close(from_pinentry[0]);
if (dup2(from_pinentry[1], STDOUT_FILENO) == -1) {
perror("dup2");
exit(1);
exit(EXIT_FAILURE);
}
close(from_pinentry[1]);

execlp(pinentry, pinentry, NULL);
perror(pinentry);
exit(1);
exit(EXIT_FAILURE);
}

close(to_pinentry[0]);
Expand Down

0 comments on commit e01a3ee

Please sign in to comment.