home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20484 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  2.2 KB

  1. Path: sparky!uunet!portal!cup.portal.com!Chris_F_Chiesa
  2. From: Chris_F_Chiesa@cup.portal.com
  3. Newsgroups: comp.os.vms
  4. Subject: Directory Fun...
  5. Message-ID: <73059@cup.portal.com>
  6. Date: Wed,  6 Jan 93 19:06:30 PST
  7. Organization: The Portal System (TM)
  8. Distribution: world
  9. References:  <01GT7CAARXS291Y33A@LAGUNA.EPCC.EDU>
  10. Lines: 64
  11.  
  12.  
  13. Here's a more detailed update on my experiments with patching the "TYPE"
  14. field of the first entry in a .DIR file (directory), on my VMS V5.4-3 
  15. system.  Jerry, Carl, I'll bet you'll both have a field day with this!
  16.  
  17. I find that the undocumented DUMP/DIR command recognizes three different
  18. values in the TYPE field, in the sense that it displays a different keyword 
  19. when I patch each of the three values into the field, and "*UNKNOWN*" 
  20. otherwise:
  21.  
  22.     TYPE field       DUMP/DIR
  23.       value        "TYPE" keyword
  24.  
  25.         0             FID
  26.         1           LINKNAME
  27.         2            TYPED
  28.  
  29. Patching a value of 3 into the field causes DUMP/DIR to display "*UNKNOWN*"
  30. for this field, and causes the following behavior:
  31.  
  32.     $ DIRECTORY [.patched_directory]
  33.  
  34.         - works fine, lists the contents of the directory as usual
  35.  
  36.     $ DIRECTORY /SEC [.patched_directory]
  37.  
  38.         - works fine, lists the contents of the directory includ-
  39.           ing each file's owner, protection, and ACL as usual
  40.  
  41.     $ DIRECTORY /DATE [.patched_directory]
  42.  
  43.         - works fine, lists the contents of the directory includ-
  44.           ing each file's creation date
  45.  
  46.     $ DUMP [.patched_directory]file.typ
  47.  
  48.         - fails with the following error messages:
  49.  
  50.           %DUMP-E-OPENIN, error opening [filespec] as input
  51.           -RMS-E-FND, ACP file or directory lookup failed
  52.           -SYSTEM-W-BADIRECTORY, bad directory file format
  53.  
  54.           (And yes, the proper filespec appears in the first
  55.           message; I've merely edited it for its inclusion in
  56.           this article.)
  57.  
  58.  
  59.     $ BACKUP [.patched_directory]*.*;* SYS$LOGIN:TEST.BCK/SAVE
  60.  
  61.         - fails with the following error messages:
  62.  
  63.           %BACKUP-E-BADDIR, directory [patched_directory] has invalid 
  64.           format
  65.           %BACKUP-W-NOFILES, no files selected from [patched_directory]
  66.  
  67.           (The proper directoryspec appears in both messages, AS
  68.           A DIRECTORY, i.e. dev:[dir...patched_directory], NOT as
  69.           a FILE (dev:[dir...]patched_directory.dir).)
  70.  
  71.   What other experiments shall I try?   :-)
  72.  
  73.   Chris
  74.  
  75.     Chris_F_Chiesa@cup.portal.com
  76.