BUG: CreateFile() Opens Read-Only File with Read/Write Access

Last reviewed: December 16, 1996
Article ID: Q140020
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) for Windows 95

SYMPTOMS

A Win32 application calls CreateFile() with GENERIC_READ and GENERIC_WRITE to open an existing file on a Novell Netware server. On the server, this file has read-only access permission set. The call to CreateFile() is successful but attempts to write to the file fail.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The information in this article is applicable only to the Microsoft Client for Netware for Windows 95 and occurs only when opening files that reside on Novell Netware servers. In the previously described scenario, the call to CreateFile() should fail with error 5L (ERRROR_ACCESS_DENIED), as it does on Windows NT.


Additional reference words: 4.00
KBCategory: kbnetwork kbbuglist kb3rdparty
KBSubcategory: NtwkMisc BseFileio


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 16, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.