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