Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!hagbard!sunic!news.funet.fi!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi) Newsgroups: comp.os.msdos.programmer Subject: Re: Turbo Pascal / wanted: patch for reading from READONLY drives Message-ID: <1990Sep25.101611.26464@uwasa.fi> Date: 25 Sep 90 10:16:11 GMT References: <1017@massey.ac.nz> Organization: University of Vaasa Lines: 21 In article <1017@massey.ac.nz> RLambour@massey.ac.nz (Bob Lambourne) writes: > >I'm working in Turbo Pascal 5.0 in a PC-NFS enviroment, and need to read >files on a network drive that is mounted READONLY. Currently, RESET's on >such files return Dos error 5 (File Access Denied), implying that Turbo >Pascal is trying to open the file READ/WRITE. > >I've been told that a one byte patch to deal with this problem/bug was >recently posted, probably to this newsgroup, but I haven't been able to >locate it in our archives. I would be very grateful if someone who has >this at their finger tips could email it to me or post it as >appropriate. Before you try to patch anything first see if the following helps: FileMode := 0; It certaily works without a hitch for non-network environments. ................................................................... Prof. Timo Salmi (Moderating at anon. ftp site 128.214.12.3) School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun