Skip to content

Commit

Permalink
pam: always print pam_conv messages to stderr
Browse files Browse the repository at this point in the history
Fixes #95
  • Loading branch information
Duncaen committed Feb 21, 2022
1 parent 6266763 commit b96106b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pam.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ pamconv(int nmsgs, const struct pam_message **msgs,

case PAM_ERROR_MSG:
case PAM_TEXT_INFO:
if (fprintf(style == PAM_ERROR_MSG ? stderr : stdout,
"%s\n", msgs[i]->msg) < 0)
if (fprintf(stderr, "%s\n", msgs[i]->msg) < 0)
goto fail;
break;

Expand Down

0 comments on commit b96106b

Please sign in to comment.