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:
@@ -371,6 +371,9 @@ fs_open_attrib(fs_volume *_vol, fs_vnode *_node, const char *name, int openMode,
|
|||||||
if (ntfs_attr_truncate(na, 0))
|
if (ntfs_attr_truncate(na, 0))
|
||||||
result = errno;
|
result = errno;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
result = ENOENT;
|
||||||
|
goto exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user