From: Derrick Brashear Date: Wed, 12 Jan 2011 21:45:57 +0000 (-0500) Subject: afsd: CellItems doesn't apply to memcache mode X-Git-Tag: upstream/1.8.0_pre1^2~4298 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6edcb1830480ef55d9dcb8a3b4735c30d802cbe4;p=packages%2Fo%2Fopenafs.git afsd: CellItems doesn't apply to memcache mode avoid a potential panic from passing a bogus path into the kernel for evaluation, in memcache mode. Change-Id: Iaa11eded2e8946207f7df9e77c3de1e5ff4f963e Reviewed-on: http://gerrit.openafs.org/3651 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 495ceb3e5..93e3e99a8 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -2307,10 +2307,12 @@ afsd_run(void) * Pass the kernel the name of the workstation cache file holding the * cell information. */ - if (afsd_debug) - printf("%s: Calling AFSOP_CELLINFO: cell info file is '%s'\n", rn, - fullpn_CellInfoFile); + if (!(cacheFlags & AFSCALL_INIT_MEMCACHE)) { + if (afsd_debug) + printf("%s: Calling AFSOP_CELLINFO: cell info file is '%s'\n", rn, + fullpn_CellInfoFile); afsd_call_syscall(AFSOP_CELLINFO, fullpn_CellInfoFile); + } if (rxmaxmtu) { if (afsd_verbose)