Fixed #5839: Return ENOENT in case ntfs_attr_open() returns NULL.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38324 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2010-08-23 19:59:39 +00:00
parent b5bc8fc8ab
commit b2c38f748a
@@ -371,6 +371,9 @@ fs_open_attrib(fs_volume *_vol, fs_vnode *_node, const char *name, int openMode,
if (ntfs_attr_truncate(na, 0))
result = errno;
}
} else {
result = ENOENT;
goto exit;
}
}