summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-04-15 06:32:54 +0000
committerdes <des@FreeBSD.org>2002-04-15 06:32:54 +0000
commitd92dca531761881a769f4c88bbd3c36499e26bf2 (patch)
treed374c5169f703caff1bd6499b883048c08531dfd /contrib
parentade038672446241dfb226bdf496cc97e584015d9 (diff)
parentbd0bbd9f7beb24d5eefac58e66363eab80b2938c (diff)
downloadFreeBSD-src-d92dca531761881a769f4c88bbd3c36499e26bf2.zip
FreeBSD-src-d92dca531761881a769f4c88bbd3c36499e26bf2.tar.gz
This commit was generated by cvs2svn to compensate for changes in r94735,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/openpam/lib/openpam_ttyconv.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/openpam/lib/openpam_ttyconv.c b/contrib/openpam/lib/openpam_ttyconv.c
index 1cef0ec..fc02405 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;
OpenPOWER on IntegriCloud