Bug 21705

Summary: CSCOPE writes incorrect offset into index file
Product: Ports & Packages Reporter: ak03 <ak03>
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description ak03 2000-10-02 20:30:01 UTC
Due to the fact, that FreeBSD fputs does not return exact number of
bytes written, wrong value for 'tailerofset' is getting written into
the cross-reference file. That makes it impossible to reuse index file
when running cscope under cbrowser control, for instance. Cbrowser 
runs cscope with the command which looks like:

 cscope -dl -f cscope.out

where -d instructs cscope not to rebuild index file and assume it
is up-to-date. While trying to reopen pre-existing data file
cscope seeks at incorrect offset and then fails with an error 
message.

Fix: Add attached file to the patches directory.
How-To-Repeat: 
Run cscope with above command line and watch it fail.
Comment 1 Steve Price freebsd_committer freebsd_triage 2001-02-26 03:45:17 UTC
State Changed
From-To: open->closed

Committed, thanks!