mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-25 09:52:23 -05:00
dll: fuse: directory symlinks can now be deleted
This commit is contained in:
parent
cbcea380ef
commit
7815b9e2eb
@ -1083,7 +1083,7 @@ static VOID fsp_fuse_intf_Cleanup(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (Delete)
|
if (Delete)
|
||||||
if (filedesc->IsDirectory)
|
if (filedesc->IsDirectory && !filedesc->IsReparsePoint)
|
||||||
{
|
{
|
||||||
if (0 != f->ops.rmdir)
|
if (0 != f->ops.rmdir)
|
||||||
f->ops.rmdir(filedesc->PosixPath);
|
f->ops.rmdir(filedesc->PosixPath);
|
||||||
@ -1466,7 +1466,7 @@ static NTSTATUS fsp_fuse_intf_CanDelete(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
struct fuse_dirhandle dh;
|
struct fuse_dirhandle dh;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (filedesc->IsDirectory)
|
if (filedesc->IsDirectory && !filedesc->IsReparsePoint)
|
||||||
{
|
{
|
||||||
/* check that directory is empty! */
|
/* check that directory is empty! */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user