no space was being allocated for . and ..; do so
int curDirEntryInPage = 0;
int sizeOfCurEntry;
int dirSize;
-
+
+ /* Reserve 2 directory chunks for "." and ".." */
+ curChunk += 2;
while (curDirEntry!=cm_noLocalMountPoints) {
sizeOfCurEntry = cm_NameEntries((cm_localMountPoints+curDirEntry)->namep, 0);
curChunk = 13;
curPage = 0;
+ /* Reserve space for "." and ".." */
+ curChunk += 2;
+
for (cellidx = 0; cellidx < maxcellidx; cellidx++) {
c = afs_GetCellByIndex(cellidx, READ_LOCK, 0 /* don't refresh */);
if (!c) continue;