Dynasty bug.

David L Moore dlmoore@pgroup.com
Fri, 16 Apr 1999 15:15:59 -0700


That was fixed a long time ago. You should pick up the patch file at:

http://nci.pgroup.com/diffs.txt

This probably never made it into a release because suif has been redeveloped to
be smaller and easier to use. There will be a release soon.

Niranjan Nilakantan wrote:
> 
> Hi,
>         While building suif2.0.784 on Linux-egcs-libc2, I detected a bug
> in dynasty.cc which causes make_resource_database_entry and pass programs
> to fail.
> 
>         In the function reread_available_resource_info around line 670,
> the fclose() precedes the
> if (ferror(fp))
> test.
> 
> In glibc 2.0, this always fails, because ferror returns -1 for a closed
> file pointer.
> 
> The fclose statement must come after the ferror test.
> 
> Niranjan.