|
Lines 24-32
Link Here
|
| 24 |
|
|
|
| 25 |
/* |
| 26 |
Modified 2003 May 30 by Lawrence D'Oliveiro, ldo@geek-central.gen.nz: |
| 27 |
quick hack to get around problem doing directory listings on |
| 28 |
NFS-mounted volumes under Tru64 UNIX 5.1 where, after readdir |
| 29 |
returns NULL to indicate the end of the listing, if it is called |
| 30 |
again, it starts returning the directory listing from the |
| 31 |
beginning. |
| 32 |
*/ |
|
Line 141
Link Here
|
| 141 |
int EndReached; /* LDO */ |
|
|
|
Line 700
Link Here
|
| 700 |
handles[handle].EndReached = 0; /* LDO */ |
|
|
|
Lines 734-743
Link Here
|
| 734 |
for (;;) /* LDO */ |
723 |
while ((dp = readdir(dirp)) != NULL) { |
| 735 |
{ |
|
|
| 736 |
if (handles[handle].EndReached) |
| 737 |
break; |
| 738 |
dp = readdir(dirp); |
| 739 |
if (dp == NULL) |
| 740 |
{ |
| 741 |
handles[handle].EndReached = 1; |
| 742 |
break; |
| 743 |
} /*if*/ |
| 744 |
-- |