diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-04-15 06:32:54 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-04-15 06:32:54 +0000 |
commit | dfcaf7512d728bd3146e0fbaca69ad6663a33194 (patch) | |
tree | d374c5169f703caff1bd6499b883048c08531dfd /contrib | |
parent | 53fd6d26b2ecb897716c2cf49cbe438da4dba4dc (diff) | |
parent | 69665ef57fe5794c40a7e691c84431790bacf0fd (diff) | |
download | src-test2-dfcaf7512d728bd3146e0fbaca69ad6663a33194.tar.gz src-test2-dfcaf7512d728bd3146e0fbaca69ad6663a33194.zip |
Notes
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/openpam/lib/openpam_ttyconv.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/openpam/lib/openpam_ttyconv.c b/contrib/openpam/lib/openpam_ttyconv.c index 1cef0ec8e0c5..fc02405bf12a 100644 --- a/contrib/openpam/lib/openpam_ttyconv.c +++ b/contrib/openpam/lib/openpam_ttyconv.c @@ -31,7 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/openpam/lib/openpam_ttyconv.c#9 $ + * $P4: //depot/projects/openpam/lib/openpam_ttyconv.c#10 $ */ #include <sys/types.h> @@ -160,9 +160,15 @@ openpam_ttyconv(int n, break; case PAM_ERROR_MSG: fputs(msg[i]->msg, stderr); + if (strlen(msg[i]->msg) > 0 && + msg[i]->msg[strlen(msg[i]->msg) - 1] != '\n') + fputc('\n', stderr); break; case PAM_TEXT_INFO: fputs(msg[i]->msg, stdout); + if (strlen(msg[i]->msg) > 0 && + msg[i]->msg[strlen(msg[i]->msg) - 1] != '\n') + fputc('\n', stdout); break; default: goto fail; |