From: Jeffrey Altman Date: Sat, 15 Nov 2008 17:07:41 +0000 (+0000) Subject: windows-btree-20081115 X-Git-Tag: openafs-devel-1_5_61~692 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ab37d70f502e3b5ebdbfe23107ac5006cc0e9a2f;p=packages%2Fo%2Fopenafs.git windows-btree-20081115 LICENSE MIT return an error if the enumeration of the directory cannot complete because the btree has not yet been generated. --- diff --git a/src/WINNT/afsd/cm_btree.c b/src/WINNT/afsd/cm_btree.c index ea0ec3abd..5c9a37351 100644 --- a/src/WINNT/afsd/cm_btree.c +++ b/src/WINNT/afsd/cm_btree.c @@ -2176,7 +2176,7 @@ cm_BPlusDirEnumerate(cm_scache_t *scp, afs_uint32 locked, afs_uint32 count = 0, slot, numentries; Nptr leafNode = NONODE, nextLeafNode; Nptr firstDataNode, dataNode, nextDataNode; - cm_direnum_t * enump; + cm_direnum_t * enump = NULL; long rc = 0; char buffer[512]; @@ -2188,6 +2188,7 @@ cm_BPlusDirEnumerate(cm_scache_t *scp, afs_uint32 locked, if (scp->dirBplus == NULL) { osi_Log0(afsd_logp, "cm_BPlusDirEnumerate No BPlus Tree"); + rc = CM_ERROR_WOULDBLOCK; goto done; }