vapier      15/07/07 08:44:52

  Added:                pam_ssh-2.1-dot-ssh-check.patch
  Log:
  Version bump #503424 by David Heidelberg.
  
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 
D2E96200)

Revision  Changes    Path
1.1                  sys-auth/pam_ssh/files/pam_ssh-2.1-dot-ssh-check.patch

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
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

Index: pam_ssh-2.1-dot-ssh-check.patch
===================================================================
https://bugs.gentoo.org/503424#c5
http://sourceforge.net/p/pam-ssh/bugs/16/

--- a/pam_ssh.c
+++ b/pam_ssh.c
@@ -867,6 +867,7 @@
        int attempt;      /* No. of attempt to contact agent */
        const char *user;               /* username */
        struct options options;         /* PAM options */
+       struct stat sb;                 /* to check for existing .ssh */
 
 #if HAVE_PAM_STRUCT_OPTIONS || !HAVE_PAM_STD_OPTION
        memset(&options, 0, sizeof options);
@@ -916,7 +917,7 @@
                openpam_restore_cred(pamh);
                return PAM_SERVICE_ERR;
        }
-       if ((access(dotdir,F_OK)) == -1) {
+       if (stat(dotdir, &sb) == -1) {
                pam_ssh_log(LOG_DEBUG, "inexistent configuration directory");
                free(dotdir);
                openpam_restore_cred(pamh);




Reply via email to