mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
9c6d384b9a
- slapd's pid/args file names are based on the servers binary file names, providing for multiple servers beeing run on one host. - slapd supports the -l command line parameter for selection of a syslog LOCAL user (-lLOCAL0 .. -lLOCAL7) - db_appinit() is called during first ldbm_open() in DB 2.x to initialize DB debugging features (good to find bugs in the DB code :-) - a patch for a non-initialized variable in DB's 2.x db_open is provided.
37 lines
990 B
Diff
37 lines
990 B
Diff
*** 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;
|
|
}
|
|
/*
|