From: CSBVAX::MRGATE!@KL.SRI.Com,@wiscvm.wisc.edu:JOE@FHCRCVAX.BITNET@SMTP 25-SEP-1987 09:38 To: EVERHART Subj: INDEX, bug in GET_HEADER.C Received: from wiscvm.wisc.edu by KL.SRI.COM with TCP; Thu 24 Sep 87 18:11:39-PDT Received: from FHCRCVAX.BITNET by wiscvm.wisc.edu ; Thu, 24 Sep 87 20:11:04 CDT Date: Thu, 24 Sep 87 18:02 PDT From: Joe Meadows Subject: INDEX, bug in GET_HEADER.C To: info-vax@kl.sri.COM X-VMS-To: IN%"info-vax@kl.sri.com" 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).