From 0794ffffeeb84de45435656ac209cb68f6f7cf5e Mon Sep 17 00:00:00 2001 From: Danny Mayer Date: Fri, 27 Jul 2001 05:17:39 +0000 Subject: [PATCH] Added paths info --- lib/isc/win32/ntpaths.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/lib/isc/win32/ntpaths.c b/lib/isc/win32/ntpaths.c index 37eef86218..08bbe9425b 100644 --- a/lib/isc/win32/ntpaths.c +++ b/lib/isc/win32/ntpaths.c @@ -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); }