0.76: please submit patches for this section with actual code/doc
patches!
+* pam_rhosts: Nalin adds support for '+hostname', and zdd fix
+ compilation warning. (Bug 476986 - agmorgan)
* pam_motd: Nalin fixed compiler warning. (Bug 476938 - agmorgan)
* pam_pwdb: Solar Designer pointed out that there was a problem with
the compatibility support for md5 password hashing. (Bug 460717,
/* location of the mail spool directory */
#undef PAM_PATH_MAILDIR
+/* where should we include setfsuid's prototype from? If this is not
+ defined, we get it from unistd.h */
+#undef HAVE_SYS_FSUID_H
+
#endif /* PAM_ACONF_H */
fi
-for ac_hdr in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h
+for ac_hdr in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h sys/fsuid.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h)
+AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h sys/fsuid.h)
dnl Linux wants features.h in some of the source files.
AC_CHECK_HEADERS(features.h)
* SUCH DAMAGE.
*/
-#define _BSD_SOURCE
+#include <security/_pam_aconf.h>
#define USER_RHOSTS_FILE "/.rhosts" /* prefixed by user's home dir */
#include <endian.h>
#endif
-#ifdef NEED_FSUID_H
+#ifdef HAVE_SYS_FSUID_H
#include <sys/fsuid.h>
-#endif /* NEED_FSUID_H */
+#endif /* HAVE_SYS_FSUID_H */
#include <sys/types.h>
#include <sys/uio.h>
return (1); /* asking for trouble, but ok.. */
/* If not promiscuous: handle as negative */
return (-1);
+ } else if (strncmp("+",lhost,1) == 0) {
+ /* '+hostname' is supposed to be equivalent to 'hostname' */
+ lhost++;
}
+
/* Try for raw ip address first. */
if (isdigit(*lhost) && (long)(laddr = inet_addr(lhost)) != -1)
return (negate*(! (raddr ^ laddr)));