From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,b0dd9817d58035ff X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,b0dd9817d58035ff X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,b0dd9817d58035ff X-Google-Attributes: gid1014db,public X-Google-ArrivalTime: 1991-07-19 17:40:33 PST Path: gmdzi!unido!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ncar!gatech!mcnc!xanth!cs.odu.edu!kremer From: kremer@cs.odu.edu (Lloyd Kremer) Newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c Subject: Re: C file access in VMS Message-ID: <1991Jul19.133032.12892@cs.odu.edu> Date: 19 Jul 91 13:30:32 GMT References: <399@motto.UUCP> Sender: news@cs.odu.edu (News File Owner) Organization: Old Dominion University, Norfolk, VA Xref: gmdzi comp.os.vms:128115 comp.sys.dec:24858 comp.lang.c:106184 Nntp-Posting-Host: wisteria.cs.odu.edu In article <399@motto.UUCP> murray@motto.UUCP (Murray S. Kucherawy) writes: > >Under VMS V5.4-1, we're auditing CONTROL access failures on files, and >the code below is causing these alarms. Can anyone figure out why >and possibly suggest a fix? Does it happen on opening any file or just those that you're not supposed to be reading? :-) Try setting the file protection to (S:RWED,O:RWED,G:RWED,W:RWED) and see if it still fails. If file protection is not the problem, file format may be. The file may be in an RMS format that is incompatible with the default file type for C. Try it on a file the was *created* by a C program using fopen(). Lloyd Kremer Hilton Systems, Inc. kremer@cs.odu.edu