~ubuntu-branches/ubuntu/breezy/pam/breezy

« back to all changes in this revision

Viewing changes to debian/patches/011_modules_pam_rhosts

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-06-28 14:28:08 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040628142808-adikk7vtfg3pzcjw
Tags: 0.76-22
* Add uploaders
* Document location of repository
* Fix options containing arguments in pam_unix, Closes: #254904

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- Linux-PAM-0.71.orig/modules/pam_rhosts/pam_rhosts_auth.c    Mon Nov  8 00:46:58 1999
2
 
+++ Linux-PAM-0.71/modules/pam_rhosts/pam_rhosts_auth.c Mon Nov  8 21:04:20 1999
3
 
@@ -537,8 +534,9 @@
4
 
      */
5
 
 
6
 
     cp = NULL;
7
 
-    if (lstat(pbuf, &sbuf) < 0 || !S_ISREG(sbuf.st_mode))
8
 
-       cp = ".rhosts not regular file";
9
 
+    /* it's ok to have a symlink, since we verify fstat and owner below */
10
 
+    if (lstat(pbuf, &sbuf) < 0 || !(S_ISREG(sbuf.st_mode) || S_ISLNK(sbuf.st_mode)))
11
 
+       cp = ".rhosts not regular file or link";
12
 
     else if (fstat(fileno(hostf), &sbuf) < 0)
13
 
        cp = ".rhosts fstat failed";
14
 
     else if (sbuf.st_uid && sbuf.st_uid != pwd->pw_uid)