Author: pschweitzer Date: Mon Oct 13 17:57:25 2014 New Revision: 64732
URL: http://svn.reactos.org/svn/reactos?rev=64732&view=rev Log: [NTFS] So far, keep our NTFS read-only. Booh, that's sad! *sob*. I know.
Modified: trunk/reactos/drivers/filesystems/ntfs/create.c
Modified: trunk/reactos/drivers/filesystems/ntfs/create.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/cr... ============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/create.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/create.c [iso-8859-1] Mon Oct 13 17:57:25 2014 @@ -243,6 +243,28 @@ NtfsCloseFile(DeviceExt, FileObject); return STATUS_NOT_A_DIRECTORY; } + + /* HUGLY HACK: remain RO so far... */ + if (RequestedDisposition == FILE_OVERWRITE || + RequestedDisposition == FILE_OVERWRITE_IF || + RequestedDisposition == FILE_SUPERSEDE) + { + DPRINT1("Denying write request on NTFS volume\n"); + NtfsCloseFile(DeviceExt, FileObject); + return STATUS_ACCESS_DENIED; + } + } + else + { + /* HUGLY HACK: remain RO so far... */ + if (RequestedDisposition == FILE_CREATE || + RequestedDisposition == FILE_OPEN_IF || + RequestedDisposition == FILE_OVERWRITE_IF || + RequestedDisposition == FILE_SUPERSEDE) + { + DPRINT1("Denying write request on NTFS volume\n"); + return STATUS_ACCESS_DENIED; + } }
/*