dll: fuse: directory symlinks can now be deleted

This commit is contained in:
Bill Zissimopoulos 2016-09-14 10:41:32 -07:00
parent cbcea380ef
commit 7815b9e2eb

View File

@ -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! */