util: fix dirpath use of clntEtcDir on Windows
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 19 Mar 2013 20:14:18 +0000 (16:14 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Mon, 25 Mar 2013 18:46:37 +0000 (11:46 -0700)
When commit 9b0a7f5d13115fe5760db16587fe81dd35a5a0ef added the variable
'clntEtcDir' it failed to assign it a value on Windows.

Change-Id: I02cfb994a28e3e1032741d1b2710acb5d40d9bfd
Reviewed-on: http://gerrit.openafs.org/9635
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/util/dirpath.c

index 6162021..e4132ac 100644 (file)
@@ -225,6 +225,8 @@ initDirPathArray(void)
           "/NoUsrViceDirectoryOnWindows");
     strcpy(dirPathArray[AFSDIR_CLIENT_ETC_DIRPATH_ID],
           ntClientConfigDirShort);
+
+    clntEtcDir = pathp = dirPathArray[AFSDIR_CLIENT_ETC_DIRPATH_ID];
 #else
     strcpy(dirPathArray[AFSDIR_CLIENT_VICE_DIRPATH_ID], afsClntDirPath);