michael@18: Index: lib/buildreq.c michael@18: --- lib/buildreq.c.orig 2005-07-21 01:01:07.000000000 -0700 michael@18: +++ lib/buildreq.c 2008-02-23 16:33:08.000000000 -0800 michael@18: @@ -89,10 +89,14 @@ michael@18: } michael@18: michael@18: rewind(sf); michael@18: - if (fscanf(sf, "%d", &seq_nbr) != 1) { michael@18: + /* comment the following block out to work around some broken */ michael@18: + /* libc distros which return 0 on successful fscanf(3) calls, */ michael@18: + /* and use the simple replacement follwing the block instead. */ michael@18: + /*if (fscanf(sf, "%d", &seq_nbr) != 1) { michael@18: rc_log(LOG_ERR,"rc_get_seqnbr: fscanf failure: %s", seqfile); michael@18: seq_nbr = rc_guess_seqnbr(); michael@18: - } michael@18: + }*/ michael@18: + fscanf(sf, "%d", &seq_nbr); michael@18: michael@18: rewind(sf); michael@18: ftruncate(fileno(sf),0);