privsep should now work.
+20030502
+ - (dtucker) Bug #544: ignore invalid cmsg_type on Linux 2.0 kernels,
+ privsep should now work.
+
20030429
- (djm) Add back radix.o (used by AFS support), after it went missing from
Makefile many moons ago
/* Pushing STREAMS modules incorrectly acquires a controlling TTY */
#undef STREAMS_PUSH_ACQUIRES_CTTY
+/* Define if cmsg_type is not passed correctly */
+#undef BROKEN_CMSG_TYPE
+
@BOTTOM@
/* ******************* Shouldn't need to edit below this line ************** */
AC_DEFINE(SETPROCTITLE_STRATEGY,PS_USE_CLOBBER_ARGV)
AC_DEFINE(SETPROCTITLE_PS_PADDING, '\0')
inet6_default_4in6=yes
+ AC_MSG_CHECKING(for broken cmsg_type)
+ case `uname -r` in
+ 2.0.*)
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(BROKEN_CMSG_TYPE)
+ ;;
+ *)
+ AC_MSG_RESULT(no)
+ ;;
+ esac
;;
mips-sony-bsd|mips-sony-newsos4)
AC_DEFINE(HAVE_NEWS4)
fatal("%s: no fd", __func__);
#else
cmsg = CMSG_FIRSTHDR(&msg);
+#ifndef BROKEN_CMSG_TYPE
if (cmsg->cmsg_type != SCM_RIGHTS)
fatal("%s: expected type %d got %d", __func__,
SCM_RIGHTS, cmsg->cmsg_type);
+#endif
fd = (*(int *)CMSG_DATA(cmsg));
#endif
return fd;