mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-15 08:12:45 -05:00
dll,tst: do not add dot entries for root directory
This commit is contained in:
@ -1735,6 +1735,15 @@ static NTSTATUS fsp_fuse_intf_ReadDirectory(FSP_FILE_SYSTEM *FileSystem,
|
||||
if (sizeof(struct fsp_fuse_dirinfo) > di->Size)
|
||||
break;
|
||||
|
||||
if ('/' == filedesc->PosixPath[0] && '\0' == filedesc->PosixPath[1])
|
||||
{
|
||||
/* if this is the root directory do not add the dot entries */
|
||||
|
||||
if ('.' == di->PosixNameBuf[0] && ('\0' == di->PosixNameBuf[1] ||
|
||||
('.' == di->PosixNameBuf[1] && '\0' == di->PosixNameBuf[2])))
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!di->FileInfoValid)
|
||||
{
|
||||
if (0 == PosixPath)
|
||||
|
Reference in New Issue
Block a user