From: Andrew Deason Date: Mon, 21 May 2012 23:14:16 +0000 (-0500) Subject: afsd: Detect -dcache presence correctly X-Git-Tag: openafs-stable-1_8_0pre1~2393 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=258a092260f3831dbf5ee693724e561b088f35ae afsd: Detect -dcache presence correctly cmd_OptionAsInt will return 0 if the requested option is present and valid. Change-Id: Ie5154648ccb274b04617dcb8cc397ed3aa3d97e6 Reviewed-on: http://gerrit.openafs.org/7444 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 0bed7e2..5fe8b04 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -1735,7 +1735,7 @@ mainproc(struct cmd_syndesc *as, void *arock) } } - if (cmd_OptionAsInt(as, OPT_dcache, &dCacheSize)) + if (cmd_OptionAsInt(as, OPT_dcache, &dCacheSize) == 0) sawDCacheSize = 1; cmd_OptionAsInt(as, OPT_volumes, &vCacheSize);