2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

Added paths info

This commit is contained in:
Danny Mayer 2001-07-27 05:17:39 +00:00
parent 075a7534a8
commit 0794ffffee

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: ntpaths.c,v 1.3 2001/07/09 21:06:15 gson Exp $ */
/* $Id: ntpaths.c,v 1.4 2001/07/27 05:17:39 mayer Exp $ */
/*
* This module fetches the required path information that is specific
@ -41,6 +41,10 @@ static char lwresd_resolvconfFile[MAX_PATH];
static char rndc_confFile[MAX_PATH];
static char ns_defaultpidfile[MAX_PATH];
static char lwresd_defaultpidfile[MAX_PATH];
static char named_key_file[MAX_PATH];
static char local_state_dir[MAX_PATH];
static char sys_conf_dir[MAX_PATH];
static DWORD baseLen = MAX_PATH;
static BOOL Initialized = FALSE;
@ -87,6 +91,15 @@ isc_ntpaths_init() {
strcpy(lwresd_defaultpidfile, namedBase);
strcat(lwresd_defaultpidfile, "\\etc\\lwresd.pid");
strcpy(named_key_file, namedBase);
strcat(named_key_file, "\\etc\\named.key");
strcpy(local_state_dir, namedBase);
strcat(local_state_dir, "\\bin");
strcpy(sys_conf_dir, namedBase);
strcat(sys_conf_dir, "\\etc");
Initialized = TRUE;
}
@ -114,6 +127,15 @@ isc_ntpaths_get(int ind) {
case LWRESD_PID_PATH:
return (lwresd_defaultpidfile);
break;
case NAMED_KEY_PATH:
return (named_key_file);
break;
case LOCAL_STATE_DIR:
return (local_state_dir);
break;
case SYS_CONF_DIR:
return (sys_conf_dir);
break;
default:
return (NULL);
}