mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
dll: fuse: fsp_fuse_intf_AddDirInfo: avoid deadlock with ReaddirPlus and symlinks
This commit is contained in:
parent
5ae0804bd2
commit
deb237f7b0
@ -1650,7 +1650,8 @@ static int fsp_fuse_intf_AddDirInfo(void *buf, const char *name,
|
||||
memset(DirInfo, 0, sizeof *DirInfo);
|
||||
DirInfo->Size = (UINT16)(sizeof(FSP_FSCTL_DIR_INFO) + SizeW * sizeof(WCHAR));
|
||||
|
||||
if (dh->ReaddirPlus && 0 != stbuf)
|
||||
if (dh->ReaddirPlus && 0 != stbuf &&
|
||||
0120000/* S_IFLNK */ != (stbuf->st_mode & 0170000))
|
||||
{
|
||||
UINT32 Uid, Gid, Mode;
|
||||
NTSTATUS Result0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user