BUG: Share='DENYNONE' Does Not Grant Full Share Privileges (106722)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 4.0
- Microsoft FORTRAN Compiler for MS-DOS 4.1
- Microsoft FORTRAN Compiler for MS-DOS 5.0
- Microsoft FORTRAN Compiler for MS-DOS 5.1
- Microsoft FORTRAN compiler for OS/2 4.1
- Microsoft FORTRAN compiler for OS/2 5.0
- Microsoft FORTRAN compiler for OS/2 5.1
- Microsoft FORTRAN PowerStation for MS-DOS 1.0
- Microsoft FORTRAN PowerStation for MS-DOS 1.0a
This article was previously published under Q106722 SYMPTOMS
Assuming SHARE.EXE is loaded, if a FORTRAN application opens a file
with share='DENYNONE', attempting to access that open file from a
FORTRAN PowerStation application will generate the following error:
run-time error F6414: OPEN(file_name)
- access not allowed
If the open file is accessed from an MS-DOS prompt or from Windows,
the following error will be generated:
Sharing violation reading drive C
Abort, Retry, Fail?
(Note that the above error assumes the open file is on drive C.)
RESOLUTION
If possible, do not load SHARE.EXE. If SHARE must be used,
applications created with FORTRAN version 5.1 or earlier can
successfully access files opened with share='DENYNONE'.
If you are using the maintenance release of FORTRAN PowerStation, version
1.0a, the work around is to add the attribute mode='readwrite' in the open
statement, like this:
character*30 a
open (2, file='test.for',
+mode='readwrite',share='DENYNONE')
read (2,'(A)') a
print *, a
read *
end
STATUS
Microsoft has confirmed this to be a problem in FORTRAN PowerStation
versions 1.0 and 1.0a for MS-DOS.
FORTRAN PowerStation version 1.0 can be differentiated from the
maintenance release version 1.0a by invoking the linker. Typing
"link32 | more" from \F32\BIN directory will show version 2.8 for
FORTRAN PowerStation version 1.0, and it will show version 1.0f for
the maintenance release version 1.0a.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | KB106722 |
---|
|