Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matt Johnston
dropbear
Commits
6a09fa23
Commit
6a09fa23
authored
Oct 03, 2013
by
Matt Johnston
Browse files
Get rid of spurious newlines in pam log messages
parent
142a0f8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
svr-authpam.c
View file @
6a09fa23
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment