Fixed slapd/strtok needs mutex bug
Fixed salpd/tcpd DoS bug
Build environment
+ Added DB2 patch information
Fixed doc/man reinstall bug
+ Fixed make clean
+ Fixed --disable-slurpd
Changes included in OpenLDAP 1.1.2
CVS Tag: OPENLDAP_REL_ENG_1_1_2
--- /dev/null
+*** db/db.c.sleepy Sun Jan 3 20:02:51 1999
+--- db/db.c Sun Jan 3 20:28:25 1999
+*************** db_open(fname, type, flags, mode, dbenv,
+*** 106,112 ****
+ DB_PGINFO pginfo;
+ HASHHDR *hashm;
+ size_t cachesize;
+! ssize_t nr;
+ u_int32_t iopsize;
+ int fd, ftype, need_fileid, restore, ret, retry_cnt, swapped;
+ char *real_name, mbuf[512];
+--- 106,112 ----
+ DB_PGINFO pginfo;
+ HASHHDR *hashm;
+ size_t cachesize;
+! ssize_t nr = (ssize_t) 0;
+ u_int32_t iopsize;
+ int fd, ftype, need_fileid, restore, ret, retry_cnt, swapped;
+ char *real_name, mbuf[512];
+*************** open_retry: if (LF_ISSET(DB_CREATE)) {
+*** 337,343 ****
+ if (nr != sizeof(mbuf)) {
+ if (nr != 0) {
+ __db_err(dbenv,
+! "%s: unexpected file format", fname);
+ goto einval;
+ }
+ /*
+--- 337,343 ----
+ if (nr != sizeof(mbuf)) {
+ if (nr != 0) {
+ __db_err(dbenv,
+! "%s: unexpected file format, %d bytes read", fname, nr);
+ goto einval;
+ }
+ /*
--- /dev/null
+
+A bug in Sleepycat´s Berkeley DB (version 2.3.16 up to 2.6.4 beta),
+was detected, that caused failure during opening of database files
+when running a threaded slapd on a linux box, kernel version 2.0.35,
+gcc 2.7.2.1, linux threads via libpthreads.so.1.60.4.
+
+THE BUG OCCURS ONLY WHEN SLAPD IS RUN WITH THREADS ENABLED AND MAY
+ONLY OCCUR ON THE PLATFORM SPECIFIED.
+
+SINCE THE CODE OF DB_OPEN() IS THE SAME IN VERSION 2.3.16 AND 2.6.4
+WITH REPECT TO THE BUG DETECTED, DB 2.3.16 SHOULD BE PATCHED AS WELL.
+
+Apply the supported patch at the root directory of Sleepycat´s code.
+Since the bug was reported to Sleepycat, it may not appear in DB
+versions, later than 2.6.4 beta.
+
+Jan 7 1999, /KSp (ksp@openldap.org)
+
clean-common: FORCE
$(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
- $(PROGRAMS) $(XPROGRAMS) $(XSRCS) \
+ $(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
*.o *.lo a.out core version.c .libs/*
depend-common: FORCE
- $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
+ $(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
lint-local: FORCE
lint5-local: FORCE
AC_MSG_RESULT($ol_cv_have_sys_errlist)
fi
])dnl
+
+dnl ====================================================================
+dnl Early MIPS compilers (used in Ultrix 4.2) don't like
+dnl "int x; int *volatile a = &x; *a = 0;"
+dnl -- borrowed from PDKSH
+AC_DEFUN(OL_C_VOLATILE,
+ [AC_CACHE_CHECK(if compiler understands volatile, ol_cv_c_volatile,
+ [AC_TRY_COMPILE([int x, y, z;],
+ [volatile int a; int * volatile b = x ? &y : &z;
+ /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
+ *b = 0;], ol_cv_c_volatile=yes, ol_cv_c_volatile=no)])
+ if test $ol_cv_c_volatile = yes; then
+ :
+ else
+ AC_DEFINE(volatile, )
+ fi
+ ])dnl
+
+dnl ====================================================================
+dnl Define sig_atomic_t if not defined in signal.h
+AC_DEFUN(OL_TYPE_SIG_ATOMIC_T,
+ [AC_CACHE_CHECK(for sig_atomic_t, ol_cv_type_sig_atomic_t,
+ [AC_TRY_COMPILE([#include <signal.h>], [sig_atomic_t atomic;],
+ ol_cv_type_sig_atomic_t=yes, ol_cv_type_sig_atomic_t=no)])
+ if test $ol_cv_type_sig_atomic_t = no; then
+ AC_DEFINE(sig_atomic_t, int)
+ fi
+ ])dnl
+
+dnl ====================================================================
+dnl check no of arguments for ctime_r
+AC_DEFUN(OL_FUNC_CTIME_R_NARGS,
+ [AC_CACHE_CHECK(number of arguments of ctime_r, ol_cv_func_ctime_r_nargs,
+ [AC_TRY_COMPILE([#include <time.h>],
+ [time_t ti; char *buffer; ctime_r(&ti,buffer,32);],
+ ol_cv_func_ctime_r_nargs=3, ol_cv_func_ctime_r_nargs=0)
+ if test $ol_cv_func_ctime_r_nargs = 0 ; then
+ AC_TRY_COMPILE([#include <time.h>],
+ [time_t ti; char *buffer;
+ ctime_r(&ti,buffer);],
+ ol_cv_func_ctime_r_nargs=2, ol_cv_func_ctime_r_nargs=0)
+ fi
+ ])
+ if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
+ AC_DEFINE_UNQUOTED(CTIME_R_NARGS, $ol_cv_func_ctime_r_nargs)
+ fi
+])dnl
+
-1.1.2-Release
+1.1.3-Release
install-slapd: FORCE
@-$(MKDIR) $(libexecdir)
+ @-$(MKDIR) $(localstatedir)
$(LTINSTALL) $(INSTALLFLAGS) -m 755 slapd $(libexecdir)
CFFILES=slapd.conf slapd.at.conf slapd.oc.conf
BUILD_OPT = "--enable-slurpd"
BUILD_SRV = @BUILD_SLURPD@
-all-local: slurpd
+all-local-srv: slurpd
XLIBS = @SLURPD_LIBS@ -llthread @LTHREAD_LIBS@ $(KRB_LIBS) -llutil @LUTIL_LIBS@