OS/2 "Path/File Access Error" Instead of "Permission Denied" (67206)






This article was previously published under Q67206

SYMPTOMS

When attempting to open a file under multiple OS/2 processes or in an OS/2 networking environment, a Basic program will incorrectly generate the error message "Path/File access error" (error code 75) when attempting to open a locked file. The error message it should generate is "Permission denied" (error code 70). This problem does not occur in a MS-DOS networking environment, such as when accessing files on a server from a MS-DOS LANMAN workstation. Under these conditions, the Basic program generates the correct error message, "Permission denied."

STATUS

Microsoft has confirmed this to be a bug in Microsoft Basic Compiler versions 6.00 and 6.00b for MS OS/2, and in Microsoft Basic PDS (Professional Development System) versions 7.00 and 7.10 for MS OS/2. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The following test program demonstrates the problem. To reproduce the problem, compile and run the program in an OS/2 session. Then switch to a new session and run the same program again. The file should be locked for writes; the second program is supposed to terminate with a "Permission denied" error, but instead, displays "Path/file access error."

Code Example

OPEN "TESTFILE" FOR APPEND LOCK WRITE AS #1
PRINT #1, "Hello"
WHILE INKEY <> "q": WEND
				

Modification Type: Minor Last Reviewed: 1/9/2003
Keywords: KB67206