home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!portal!cup.portal.com!Chris_F_Chiesa
- From: Chris_F_Chiesa@cup.portal.com
- Newsgroups: comp.os.vms
- Subject: Directory Fun...
- Message-ID: <73059@cup.portal.com>
- Date: Wed, 6 Jan 93 19:06:30 PST
- Organization: The Portal System (TM)
- Distribution: world
- References: <01GT7CAARXS291Y33A@LAGUNA.EPCC.EDU>
- Lines: 64
-
-
- Here's a more detailed update on my experiments with patching the "TYPE"
- field of the first entry in a .DIR file (directory), on my VMS V5.4-3
- system. Jerry, Carl, I'll bet you'll both have a field day with this!
-
- I find that the undocumented DUMP/DIR command recognizes three different
- values in the TYPE field, in the sense that it displays a different keyword
- when I patch each of the three values into the field, and "*UNKNOWN*"
- otherwise:
-
- TYPE field DUMP/DIR
- value "TYPE" keyword
-
- 0 FID
- 1 LINKNAME
- 2 TYPED
-
- Patching a value of 3 into the field causes DUMP/DIR to display "*UNKNOWN*"
- for this field, and causes the following behavior:
-
- $ DIRECTORY [.patched_directory]
-
- - works fine, lists the contents of the directory as usual
-
- $ DIRECTORY /SEC [.patched_directory]
-
- - works fine, lists the contents of the directory includ-
- ing each file's owner, protection, and ACL as usual
-
- $ DIRECTORY /DATE [.patched_directory]
-
- - works fine, lists the contents of the directory includ-
- ing each file's creation date
-
- $ DUMP [.patched_directory]file.typ
-
- - fails with the following error messages:
-
- %DUMP-E-OPENIN, error opening [filespec] as input
- -RMS-E-FND, ACP file or directory lookup failed
- -SYSTEM-W-BADIRECTORY, bad directory file format
-
- (And yes, the proper filespec appears in the first
- message; I've merely edited it for its inclusion in
- this article.)
-
-
- $ BACKUP [.patched_directory]*.*;* SYS$LOGIN:TEST.BCK/SAVE
-
- - fails with the following error messages:
-
- %BACKUP-E-BADDIR, directory [patched_directory] has invalid
- format
- %BACKUP-W-NOFILES, no files selected from [patched_directory]
-
- (The proper directoryspec appears in both messages, AS
- A DIRECTORY, i.e. dev:[dir...patched_directory], NOT as
- a FILE (dev:[dir...]patched_directory.dir).)
-
- What other experiments shall I try? :-)
-
- Chris
-
- Chris_F_Chiesa@cup.portal.com
-