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



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
    • Microsoft Windows 95

This article was previously published under Q140020

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.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kb3rdparty kbAPI kbBug kbFileIO kbnetwork KB140020