Subject: [PATCH 6/6] dropbear configuration file

dropbear: Change the path ("/etc/pam.d/sshd" as default) to find a pam configuration file \
to "/etc/pam.d/dropbear for dropbear when enabling pam supporting" 

Upstream-Status: Inappropriate [configuration] 

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
 svr-authpam.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/svr-authpam.c b/svr-authpam.c
index e84f076..e28be7d 100644
--- a/svr-authpam.c
+++ b/svr-authpam.c
@@ -195,7 +195,7 @@ void svr_auth_pam() {
 	userData.passwd = password;
 
 	/* Init pam */
-	if ((rc = pam_start("sshd", NULL, &pamConv, &pamHandlep)) != PAM_SUCCESS) {
+	if ((rc = pam_start("dropbear", NULL, &pamConv, &pamHandlep)) != PAM_SUCCESS) {
 		dropbear_log(LOG_WARNING, "pam_start() failed, rc=%d, %s\n", 
 				rc, pam_strerror(pamHandlep, rc));
 		goto cleanup;
-- 
1.7.11.7

