summaryrefslogtreecommitdiffhomepage
path: root/svr-authpam.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-10-03 23:04:26 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-10-03 23:04:26 +0800
commit6a09fa23d0fa7237936dc0e99bff4abf37c27d68 (patch)
tree8c52216b95ad6cfc6bc56d8256e14d22bb6a1818 /svr-authpam.c
parent142a0f8a83262b278d7d4eeaada2801a039c94c8 (diff)
Get rid of spurious newlines in pam log messages
Diffstat (limited to 'svr-authpam.c')
-rw-r--r--svr-authpam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/svr-authpam.c b/svr-authpam.c
index a586727..0b1d69f 100644
--- a/svr-authpam.c
+++ b/svr-authpam.c
@@ -212,14 +212,14 @@ void svr_auth_pam() {
/* Init pam */
if ((rc = pam_start("sshd", NULL, &pamConv, &pamHandlep)) != PAM_SUCCESS) {
- dropbear_log(LOG_WARNING, "pam_start() failed, rc=%d, %s\n",
+ dropbear_log(LOG_WARNING, "pam_start() failed, rc=%d, %s",
rc, pam_strerror(pamHandlep, rc));
goto cleanup;
}
/* just to set it to something */
if ((rc = pam_set_item(pamHandlep, PAM_TTY, "ssh") != PAM_SUCCESS)) {
- dropbear_log(LOG_WARNING, "pam_set_item() failed, rc=%d, %s\n",
+ dropbear_log(LOG_WARNING, "pam_set_item() failed, rc=%d, %s",
rc, pam_strerror(pamHandlep, rc));
goto cleanup;
}
@@ -232,7 +232,7 @@ void svr_auth_pam() {
/* (void) pam_set_item(pamHandlep, PAM_FAIL_DELAY, (void*) pamDelayFunc); */
if ((rc = pam_authenticate(pamHandlep, 0)) != PAM_SUCCESS) {
- dropbear_log(LOG_WARNING, "pam_authenticate() failed, rc=%d, %s\n",
+ dropbear_log(LOG_WARNING, "pam_authenticate() failed, rc=%d, %s",
rc, pam_strerror(pamHandlep, rc));
dropbear_log(LOG_WARNING,
"Bad PAM password attempt for '%s' from %s",
@@ -243,7 +243,7 @@ void svr_auth_pam() {
}
if ((rc = pam_acct_mgmt(pamHandlep, 0)) != PAM_SUCCESS) {
- dropbear_log(LOG_WARNING, "pam_acct_mgmt() failed, rc=%d, %s\n",
+ dropbear_log(LOG_WARNING, "pam_acct_mgmt() failed, rc=%d, %s",
rc, pam_strerror(pamHandlep, rc));
dropbear_log(LOG_WARNING,
"Bad PAM password attempt for '%s' from %s",