From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,dbe6b8f0f831d25 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-02-06 22:07:58 PST Path: sparky!uunet!timbuk.cray.com!web!vixvax.mgi.com!cepek From: cepek@vixvax.mgi.com Newsgroups: comp.sys.dec Subject: Re: Attn RT-11 gurus: file protect detection? Message-ID: <1992Feb6.200201.1602@vixvax.mgi.com> Date: 6 Feb 92 20:02:01 CDT References: <1992Feb6.104432.1599@vixvax.mgi.com> Organization: Management Graphics, Inc. In article <1992Feb6.104432.1599@vixvax.mgi.com>, I wrote: > On RT-11, is there a way to find out if a file is protected (without > having to muddle through the directory itself)? : A few additional notes: - I have tried opening the file and reading the first block, and then writing that block back out. This *succeeds*, *even*if*the*file*is* protected. Recall that I wrote in my original post: > In fact, the documentation says that you can do a .LOOKUP on a > file that is protected and then write to it (honest! look up .FPROT). - I've worked with this system for 6 years; this is not a novice question (hence my Subject line). However, I certainly don't claim to know everything about the system (just lots and lots :-). - We are using the DECUS-C run-time library, circa 1985 (with local mods, of course; mostly bug fixes and ANSI-C-ization). - A valid solution to the problem should not affect the file I am checking the protection on - contents or date stamp. Thanks again, in advance. ,--------------------------------,___________________________ / Mike Cepek, Sr. Software Eng. / Internet: CEPEK@MGI.COM / \ Management Graphics, Inc. \ Voice: +1 612/851-6112 \ "Engage." / 1401 East 79th Street / Operator: +1 612/854-1220 / \ Minneapolis, MN 55425 USA \ Fax: +1 612/854-6913 \ `-------------------------------/___________________________/