diff -r dabc4f22486f -r 9115bae56135 radiusclient/radiusclient.patch.libc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/radiusclient/radiusclient.patch.libc Tue Jan 06 23:48:04 2009 +0100 @@ -0,0 +1,20 @@ +Index: lib/buildreq.c +--- lib/buildreq.c.orig 2005-07-21 01:01:07.000000000 -0700 ++++ lib/buildreq.c 2008-02-23 16:33:08.000000000 -0800 +@@ -89,10 +89,14 @@ + } + + rewind(sf); +- if (fscanf(sf, "%d", &seq_nbr) != 1) { ++ /* comment the following block out to work around some broken */ ++ /* libc distros which return 0 on successful fscanf(3) calls, */ ++ /* and use the simple replacement follwing the block instead. */ ++ /*if (fscanf(sf, "%d", &seq_nbr) != 1) { + rc_log(LOG_ERR,"rc_get_seqnbr: fscanf failure: %s", seqfile); + seq_nbr = rc_guess_seqnbr(); +- } ++ }*/ ++ fscanf(sf, "%d", &seq_nbr); + + rewind(sf); + ftruncate(fileno(sf),0);