From 6edcb1830480ef55d9dcb8a3b4735c30d802cbe4 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Wed, 12 Jan 2011 16:45:57 -0500 Subject: [PATCH] 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 --- src/afsd/afsd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 495ceb3e5f..93e3e99a85 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)