If we encounter an unsupported entry (like a relocated directory) we now just

skip it instead of returning the error and therefore aborting the directory
enumeration.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30876 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2009-05-27 01:30:29 +00:00
parent de49044796
commit 43276e5bd1
1 changed files with 4 additions and 2 deletions

View File

@ -730,10 +730,12 @@ ISOReadDirEnt(iso9660_volume *volume, dircookie *cookie, struct dirent *dirent,
size_t bytesRead = 0;
result = InitNode(&node, blockData + cookie->pos, &bytesRead,
volume->joliet_level);
if (result != B_OK)
// if we hit an entry that we don't support, we just skip it
if (result != B_OK && result != B_NOT_SUPPORTED)
break;
if ((node.flags & ISO_IS_ASSOCIATED_FILE) == 0) {
if (result == B_OK && (node.flags & ISO_IS_ASSOCIATED_FILE) == 0) {
size_t nameBufferSize = bufferSize - sizeof(struct dirent);
dirent->d_dev = volume->id;