tst: memfs: GetSecurityByName: reparse point fix

This commit is contained in:
Bill Zissimopoulos 2016-09-14 16:20:21 -07:00
parent aeff3dc21e
commit 49cd11b34b

View File

@ -333,10 +333,11 @@ static NTSTATUS GetSecurityByName(FSP_FILE_SYSTEM *FileSystem,
{ {
Result = STATUS_OBJECT_NAME_NOT_FOUND; Result = STATUS_OBJECT_NAME_NOT_FOUND;
if (!MemfsFileNodeMapGetParent(Memfs->FileNodeMap, FileName, &Result) && if (FspFileSystemFindReparsePoint(FileSystem, GetReparsePointByName, 0,
FspFileSystemFindReparsePoint(FileSystem, GetReparsePointByName, 0, FileName, PFileAttributes))
FileName, PFileAttributes))
Result = STATUS_REPARSE; Result = STATUS_REPARSE;
else
MemfsFileNodeMapGetParent(Memfs->FileNodeMap, FileName, &Result);
return Result; return Result;
} }