X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslurpd%2Fglobals.c;h=5ff11118a0c2a8ba5dbbbb25ce804f2242ec8e5e;hb=61da08db5e2d7007ad580cdd24c5e58efd809831;hp=0bd0329ba0409d4994c7b9aa46a9778dad7cabfa;hpb=20a05ed4f28ccf22c1348c1d66f3fa06a456072f;p=openldap diff --git a/servers/slurpd/globals.c b/servers/slurpd/globals.c index 0bd0329ba0..5ff11118a0 100644 --- a/servers/slurpd/globals.c +++ b/servers/slurpd/globals.c @@ -1,6 +1,6 @@ /* $OpenLDAP$ */ /* - * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ /* @@ -39,7 +39,6 @@ int ldap_syslog_level = 0; #endif int ldap_debug = 0; - /* * Initialize the globals */ @@ -53,12 +52,17 @@ init_globals( void ) return NULL; } +#ifdef HAVE_NT_SERVICE_MANAGER + g->slapd_configfile = ".\\slapd.conf"; + g->slurpd_rdir = ".\\replica"; +#else g->slapd_configfile = SLAPD_DEFAULT_CONFIGFILE; + g->slurpd_rdir = DEFAULT_SLURPD_REPLICA_DIR "/replica"; +#endif g->no_work_interval = DEFAULT_NO_WORK_INTERVAL; g->slurpd_shutdown = 0; g->num_replicas = 0; g->replicas = NULL; - g->slurpd_rdir = DEFAULT_SLURPD_REPLICA_DIR "/replica"; strcpy( g->slurpd_status_file, DEFAULT_SLURPD_STATUS_FILE ); g->slapd_replogfile[ 0 ] = '\0'; g->slurpd_replogfile[ 0 ] = '\0'; @@ -66,6 +70,7 @@ init_globals( void ) g->one_shot_mode = 0; g->no_detach = 0; g->myname = NULL; + g->serverName = NULL; g->srpos = 0L; if ( St_init( &(g->st)) < 0 ) { fprintf( stderr, "Cannot initialize status data\n" );