[cvs-nhc98] Fix prim for IO.openFile for true RO, WO modes.

Malcolm Wallace malcolm@sparud.net
Mon, 19 Feb 2001 17:02:04 +0100 (CET)


malcolm: Mon Feb 19 17:02:04 CET 2001

Update of /usr/src/master/nhc/src/runtime/Builtin
In directory hinken:/tmp/cvs-serv3749

Modified Files:
	cOpen.c 
Log Message:
Fix prim for IO.openFile for true RO, WO modes.
  For some reason (maybe BinaryIO?) the prim for openFile silently
  promoted all of  ReadMode, WriteMode, AppendMode  into  ReadWriteMode.
  This is bad news if the file in question actually has strict
  permissions for RO or WO - the openFile fails, despite being a correct
  specification.  This patch makes the prim modes strictly correct.