Skip to content

Commit b96106b

Browse files
committed
pam: always print pam_conv messages to stderr
Fixes #95
1 parent 6266763 commit b96106b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pam.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ pamconv(int nmsgs, const struct pam_message **msgs,
104104

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

0 commit comments

Comments
 (0)