Create File NCP May Not Function Correctly with Read and Write Access Flags

ID: Q242193


The information in this article applies to:
  • Microsoft Windows 98 Second Edition
  • Microsoft Windows 98
  • Microsoft Windows 95 OEM Service Release versions 2, 2.1, 2.5


SYMPTOMS

When you create a file on a Novell NetWare server with read and write permissions, a handle to a file opened with read-only permissions may be returned. Subsequent attempts to use this handle in a write operation are unsuccessful.


CAUSE

This behavior occurs when the Microsoft Client for NetWare Networks (Nwredir) is installed. The Client for NetWare Networks code that handles the File Create NCP command (0x2222 87 01) attempts to open the file with the correct read and write permissions. If the call is unsuccessful, the original create request flags are checked for OPEN_ALWAYS. If the file is not opened with OPEN_ALWAYS, the process continues to the next check to see if the error status equals 0x90 (Some Files Read Only). If the ACCESS_READWRITE bits are set, the process toggles off the WRITE bit and attempts to open the file with ACCESS_READONLY. If this call is successful, the read-only handle is returned to the caller.


RESOLUTION

A supported fix that corrects this problem is now available from Microsoft, but it has not been fully regression tested and should be applied only to systems experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information on support costs, please go to the following address on the World Wide Web:

http://www.microsoft.com/support/supportnet/overview/overview.asp
The English-language version of this fix should have the following file attributes or later:

   Date      Time    Version      Size      File name     Platform
   ---------------------------------------------------------------
   11/02/99  1:59P   04.00.1113   174,618   Nwredir.vxd   Win95
   11/02/99  1:59P   04.00.1113   174,618   Nwredir.vxd   OSR2
   11/02/99  1:59P   04.00.1113   174,618   Nwredir.vxd   OSR2.1
   11/02/99  1:59P   04.00.1113   174,618   Nwredir.vxd   OSR2.5
   11/03/99  12:19P  04.10.2224   178,718   Nwredir.vxd   Win98
   11/03/99  12:19P  04.10.2224   178,718   Nwredir.vxd   Win98SE 


STATUS

Microsoft has confirmed this to be a problem in the Microsoft Client for NetWare Networks.

Additional query words:

Keywords : kbenv win95 win98
Version : WINDOWS:95
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: November 17, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.