]> git.sommitrealweird.co.uk Git - quagga-debian.git/blob - debian/patches/0001-82_vtysh__vtysh_user.c__pam.patch
New upstream release
[quagga-debian.git] / debian / patches / 0001-82_vtysh__vtysh_user.c__pam.patch
1 From: Debian QA Group <packages@qa.debian.org>
2 Date: Sat, 12 Nov 2016 01:16:08 +1100
3 Subject: 82_vtysh__vtysh_user.c__pam
4
5 ---
6  vtysh/vtysh_user.c | 2 ++
7  1 file changed, 2 insertions(+)
8
9 diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c
10 index 584b61f..ad0c79d 100644
11 --- a/vtysh/vtysh_user.c
12 +++ b/vtysh/vtysh_user.c
13 @@ -59,6 +59,8 @@ vtysh_pam (const char *user)
14    /* Is user really user? */
15    if (ret == PAM_SUCCESS)
16      ret = pam_authenticate (pamh, 0);
17 +  if (ret != PAM_SUCCESS)
18 +    printf("Not authenticated. Check /etc/pam.d/quagga.\n");
19    /* printf ("ret %d\n", ret); */
20    
21  #if 0