From edff3054db89e6229c6416e789ce7834554d0905 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Mon, 15 Aug 2016 07:21:05 -0700 Subject: [PATCH] dll: fuse: disallow deletion of reparse point (which we cannot support) --- src/dll/fuse/fuse_intf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dll/fuse/fuse_intf.c b/src/dll/fuse/fuse_intf.c index ad1b2774..10d36884 100644 --- a/src/dll/fuse/fuse_intf.c +++ b/src/dll/fuse/fuse_intf.c @@ -1797,6 +1797,10 @@ static NTSTATUS fsp_fuse_intf_SetReparsePoint(FSP_FILE_SYSTEM *FileSystem, if (0 == f->ops.symlink) return STATUS_INVALID_DEVICE_REQUEST; + /* were we asked to delete the reparse point? no can do! */ + if (0 == Buffer) + return STATUS_ACCESS_DENIED; + /* is this an absolute path? */ if (Size > 4 * sizeof(WCHAR) && '\\' == ((PWSTR)Buffer)[0] &&