]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-refactor-cm_config-20080201
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 1 Feb 2008 21:39:40 +0000 (21:39 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 1 Feb 2008 21:39:40 +0000 (21:39 +0000)
commit1b36eec45977eadf0bae02aeee63cab96e87cc8a
tree7b8033a69d6ca7dbb39f88535bbfefd219d9df29
parent28cf013460577491cc783f6a663200185a408161
DEVEL15-windows-refactor-cm_config-20080201

LICENSE MIT

cm_config.c was a nightmare.  there were several functions that each
computed the location of the OpenAFS Client configuration directory
in a slightly different way.  Now there is a single exported function
that determines the directory, and another that determines the name
of the CellServDB file.  All of the other functons in cm_config.c and
throughout the src/WINNT/afsd directory now use those two functions.

The new rule for determining the location of the OpenAFS Client
configuration directory and hence the CellServDB file location is:

1. check the AFSCONF environment variable
2. check the HKLM\SOFTWARE\OpenAFS\Client   CellServDBDir registry value
3. use AFSDIR_CLIENT_ETC_DIRPATH which currently refers to
   \Program Files\OpenAFS\Client

(For 1.5 branch remove all references to DJGPP in cm_config.[ch])

(cherry picked from commit 0f41a173925407cc7f6a597477ba25691f73d119)
src/WINNT/afsd/afsd_init.c
src/WINNT/afsd/afskfw.c
src/WINNT/afsd/afskfw.h
src/WINNT/afsd/cm_cell.c
src/WINNT/afsd/cm_config.c
src/WINNT/afsd/cm_config.h
src/WINNT/afsd/cm_freelance.c
src/WINNT/afsd/fs.c
src/WINNT/afsd/libafsconf.def