From f19e9d72466785bb3b543922f153ad8be2395e6e Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Thu, 3 May 2012 14:57:08 -0500 Subject: [PATCH] vos: Default to server confdir for -localauth For -localauth, we traditionally default to using the server configuration directory, since that's usually the dir that has the KeyFile in it. Keep doing that with the new ubik client interface. Change-Id: I0f7e1ed180874f52c2b91b1ea3f74e763c26cd0c Reviewed-on: http://gerrit.openafs.org/7324 Tested-by: BuildBot Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Tom Keiser Reviewed-by: Derrick Brashear --- src/volser/vos.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/volser/vos.c b/src/volser/vos.c index c9a624ad99..27be7d665a 100644 --- a/src/volser/vos.c +++ b/src/volser/vos.c @@ -5831,8 +5831,10 @@ MyBeforeProc(struct cmd_syndesc *as, void *arock) if (as->parms[13].items) secFlags |= AFSCONF_SECOPTS_NOAUTH; - if (as->parms[14].items) /* -localauth specified */ + if (as->parms[14].items) { /* -localauth specified */ secFlags |= AFSCONF_SECOPTS_LOCALAUTH; + confdir = AFSDIR_SERVER_ETC_DIRPATH; + } if (as->parms[16].items /* -encrypt specified */ #ifdef AFS_NT40_ENV