From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,b0dd9817d58035ff,start X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,b0dd9817d58035ff,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,b0dd9817d58035ff,start X-Google-Attributes: gid1014db,public X-Google-ArrivalTime: 1991-07-19 04:50:46 PST Path: gmdzi!unido!mcsun!uunet!news-server.csri.toronto.edu!torsqnt!tmsoft!mnetor!motto!murray From: murray@motto.UUCP (Murray S. Kucherawy) Newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c Subject: C file access in VMS Message-ID: <399@motto.UUCP> Date: 18 Jul 91 15:31:53 GMT Reply-To: murray@motto.UUCP (Murray S. Kucherawy) Organization: Private Systems Division, Motorola Canada Ltd., Toronto Xref: gmdzi comp.os.vms:128095 comp.sys.dec:24856 comp.lang.c:106167 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? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FILE *open_file_for_read( file_name) char file_name[SIZE_OF_FILE_NAME]; { FILE *p_file; if ( (p_file = fopen( file_name, "r")) == NULL) { printf("\n\nFailed to open file %s for reading.\n\n", file_name); exit(1); } else return( p_file); } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Thanks in advance... =============================== Murray S. Kucherawy ========================== Motorola Canada, Ltd. Private Systems Division, Toronto [on work term] University of Waterloo, Ontario, Canada 2B Math/Computer Science Internet: murray@motto.UUCP (work) mskucherawy@watmath.UWaterloo.ca (UW) UUCP: uunet!utai!lsuc!motto!murray uunet!watmath!mskucherawy