Do not stop the loop when an empty or deleted directory entry is found.

Rather just skip over it.
This commit is contained in:
jhay 2009-06-24 06:42:13 +00:00
parent daf18f9631
commit 4067f2d3af

View File

@ -195,7 +195,9 @@ parse_fis_directory(u_char *buf, size_t bufsize, off_t offset, uint32_t offmask)
*/
fisdir = redbcfg = NULL;
*(tail = &head) = NULL;
for (i = 0; fd < efd && fd->name[0] != 0xff; i++, fd++) {
for (i = 0; fd < efd; i++, fd++) {
if (fd->name[0] == 0xff)
continue;
if (match(fd->name, FISDIR_NAME))
fisdir = fd;
else if (match(fd->name, REDBCFG_NAME))