Dynasty bug.
Niranjan Nilakantan
nilakant@cs.nyu.edu
Fri, 16 Apr 1999 15:54:39 -0400 (EDT)
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.