Author: tfaber
Date: Sun Nov 29 18:43:50 2015
New Revision: 70208
URL:
http://svn.reactos.org/svn/reactos?rev=70208&view=rev
Log:
[FASTFAT]
- Fail attempts to open files relative to the volume
Modified:
trunk/reactos/drivers/filesystems/fastfat/create.c
Modified: trunk/reactos/drivers/filesystems/fastfat/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] Sun Nov 29 18:43:50
2015
@@ -492,7 +492,9 @@
/* This a open operation for the volume itself */
if (FileObject->FileName.Length == 0 &&
- (FileObject->RelatedFileObject == NULL ||
FileObject->RelatedFileObject->FsContext2 != NULL))
+ (FileObject->RelatedFileObject == NULL ||
+ FileObject->RelatedFileObject->FsContext2 != NULL ||
+ FileObject->RelatedFileObject->FsContext == DeviceExt->VolumeFcb))
{
DPRINT("Volume opening\n");
@@ -542,6 +544,13 @@
Irp->IoStatus.Information = FILE_OPENED;
return STATUS_SUCCESS;
+ }
+
+ if (FileObject->RelatedFileObject != NULL &&
+ FileObject->RelatedFileObject->FsContext == DeviceExt->VolumeFcb)
+ {
+ ASSERT(FileObject->FileName.Length != 0);
+ return STATUS_OBJECT_PATH_NOT_FOUND;
}
/* Check for illegal characters and illegale dot sequences in the file name */