Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-auth/pam_ssh/files: pam_ssh-2.1-dot-ssh-check.patch
Date: Tue, 07 Jul 2015 08:45:00
Message-Id: 20150707084452.2F89D763@oystercatcher.gentoo.org
1 vapier 15/07/07 08:44:52
2
3 Added: pam_ssh-2.1-dot-ssh-check.patch
4 Log:
5 Version bump #503424 by David Heidelberg.
6
7 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
8
9 Revision Changes Path
10 1.1 sys-auth/pam_ssh/files/pam_ssh-2.1-dot-ssh-check.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pam_ssh/files/pam_ssh-2.1-dot-ssh-check.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pam_ssh/files/pam_ssh-2.1-dot-ssh-check.patch?rev=1.1&content-type=text/plain
14
15 Index: pam_ssh-2.1-dot-ssh-check.patch
16 ===================================================================
17 https://bugs.gentoo.org/503424#c5
18 http://sourceforge.net/p/pam-ssh/bugs/16/
19
20 --- a/pam_ssh.c
21 +++ b/pam_ssh.c
22 @@ -867,6 +867,7 @@
23 int attempt; /* No. of attempt to contact agent */
24 const char *user; /* username */
25 struct options options; /* PAM options */
26 + struct stat sb; /* to check for existing .ssh */
27
28 #if HAVE_PAM_STRUCT_OPTIONS || !HAVE_PAM_STD_OPTION
29 memset(&options, 0, sizeof options);
30 @@ -916,7 +917,7 @@
31 openpam_restore_cred(pamh);
32 return PAM_SERVICE_ERR;
33 }
34 - if ((access(dotdir,F_OK)) == -1) {
35 + if (stat(dotdir, &sb) == -1) {
36 pam_ssh_log(LOG_DEBUG, "inexistent configuration directory");
37 free(dotdir);
38 openpam_restore_cred(pamh);