mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
Minor adjustments to better handle NT vs UNIX.
This commit is contained in:
parent
16366cff99
commit
fbc0bd013e
7 changed files with 6 additions and 6 deletions
|
|
@ -31,7 +31,6 @@
|
|||
* SHARED DEFINITIONS
|
||||
* These are shared with Makefile and should not change via configure
|
||||
*/
|
||||
#define DEFAULT_DIRSEP "/"
|
||||
#define DEFAULT_BINDIR "%BINDIR%"
|
||||
#define DEFAULT_SBINDIR "%SBINDIR%"
|
||||
#define DEFAULT_DATADIR "%DATADIR%"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
/*
|
||||
* SHARED DEFINITIONS - things you should change
|
||||
*/
|
||||
#define DEFAULT_DIRSEP "\\"
|
||||
#define DEFAULT_BINDIR "C:\\OpenLDAP\\bin"
|
||||
#define DEFAULT_SBINDIR "C:\\OpenLDAP\\sbin"
|
||||
#define DEFAULT_DATADIR "C:\\OpenLDAP\\share"
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#define OPENLDAP_PACKAGE "OpenLDAP"
|
||||
#define OPENLDAP_VERSION "-devel"
|
||||
#define EXEEXT ".exe"
|
||||
#define DIRSEP "\\"
|
||||
|
||||
#if defined( _DEBUG ) && !defined( LDAP_DEBUG )
|
||||
#define LDAP_DEBUG 1
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
#include "portable.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <ac/string.h>
|
||||
|
||||
#include "lber-int.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ ldbm_cache_open(
|
|||
struct stat st;
|
||||
#endif
|
||||
|
||||
sprintf( buf, "%s%s%s%s", li->li_directory, DEFAULT_DIRSEP, name, suffix );
|
||||
sprintf( buf, "%s%s%s%s", li->li_directory, DIRSEP, name, suffix );
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "=> ldbm_cache_open( \"%s\", %d, %o )\n", buf,
|
||||
flags, li->li_mode );
|
||||
|
|
|
|||
|
|
@ -51,11 +51,11 @@ ldbm_back_startup(
|
|||
|
||||
/* if the data directory is not an absolute path, have it relative
|
||||
to the current working directory (which should not be configured !) */
|
||||
if ( *li->li_directory != *DEFAULT_DIRSEP ) {
|
||||
if ( *li->li_directory != *DIRSEP ) {
|
||||
char cwd[MAXPATHLEN];
|
||||
|
||||
(void) getcwd( cwd, MAXPATHLEN );
|
||||
sprintf( cwd, "%s%s%s", cwd, DEFAULT_DIRSEP, li->li_directory );
|
||||
sprintf( cwd, "%s%s%s", cwd, DIRSEP, li->li_directory );
|
||||
free( li->li_directory );
|
||||
li->li_directory = strdup( cwd );
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ oc_check_required( Entry *e, char *ocname )
|
|||
{
|
||||
ObjectClass *oc;
|
||||
AttributeType *at;
|
||||
int i, j;
|
||||
int i;
|
||||
Attribute *a;
|
||||
char **pp;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue