Import Debian changes 1.2.2-1
[quagga-debian.git] / debian / patches / 0001-82_vtysh__vtysh_user.c__pam.patch
diff --git a/debian/patches/0001-82_vtysh__vtysh_user.c__pam.patch b/debian/patches/0001-82_vtysh__vtysh_user.c__pam.patch
new file mode 100644 (file)
index 0000000..057cb0d
--- /dev/null
@@ -0,0 +1,21 @@
+From: Debian QA Group <packages@qa.debian.org>
+Date: Sat, 12 Nov 2016 01:16:08 +1100
+Subject: 82_vtysh__vtysh_user.c__pam
+
+---
+ vtysh/vtysh_user.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c
+index 584b61f..ad0c79d 100644
+--- a/vtysh/vtysh_user.c
++++ b/vtysh/vtysh_user.c
+@@ -59,6 +59,8 @@ vtysh_pam (const char *user)
+   /* Is user really user? */
+   if (ret == PAM_SUCCESS)
+     ret = pam_authenticate (pamh, 0);
++  if (ret != PAM_SUCCESS)
++    printf("Not authenticated. Check /etc/pam.d/quagga.\n");
+   /* printf ("ret %d\n", ret); */
+   
+ #if 0