allow an alternate config dir
Change-Id: I454d63199dcfadc46ba957ddae0685efee6acf26
Reviewed-on: http://gerrit.openafs.org/5476
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
int afscp_Insecure(void);
int afscp_AnonymousAuth(int);
+void afscp_SetConfDir(char *confDir);
+
struct afscp_cell *afscp_DefaultCell(void);
struct afscp_cell *afscp_CellByName(const char *, const char *);
int afscp_SetDefaultRealm(const char *);
static struct afsconf_dir *confdir;
+void
+afscp_SetConfDir(char *confDir)
+{
+ if (confdir != NULL)
+ afsconf_Close(confdir);
+
+ confdir = afsconf_Open(confDir);
+}
+
static int
_GetCellInfo(char *cell, struct afsconf_cell *celldata)
{