[comp.os.vms] INDEX, bug in GET_HEADER.C

JOE@FHCRCVAX.BITNET (Joe Meadows) (09/25/87)

Oh no!!! A bug in the INDEX utility distributed earlier...

  In GET_HEADER.C, the declaration of fid and ofid should be changed
from:
  short int fid[3], ofid[3];
into:
  unsigned short int fid[3], ofid[3];

  When you make this change, please note it in the modification
history.. The date I made this change, and which you may want to
use, is Sep. 24, 1987.

  If you don't make this change INDEX will not necessarily span multiple
headers. This problem occurs when the FID number or sequence happens to
be greater than .. gosh, must be 32767.. The FID in the header is
compared to the given FID, to make sure it is really a proper header
(i.e. a sanity check for deleted files), and thus an unsigned version
(as declared in FH2DEF.H) is compared against the (wrongly) signed
version declared in GET_HEADER.. This logic is skipped during a
/FULLNAME or /FID search/display.

  Cheers,
  Joe Meadows Jr.
  VAX/VMS System Manager / guru in training
  Fred Hutchinson Cancer Research Center
  1124 Columbia St.
  Seattle Wa. 98104
     bitnet - JOE@FHCRCVAX
     arpa   - JOE%FHCRCVAX.BITNET@WISCVM.WISC.EDU
     voice  - (206) 467-4970

P.S. All the parts have made it back to me from info-vax, so, if you
haven't received all 5 parts, you should feel free to contact me (after
checking local/nearby archives first).