radiusclient/radiusclient.patch.libc

Sat, 06 Oct 2012 16:24:01 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 06 Oct 2012 16:24:01 +0200
changeset 727
914043724d20
permissions
-rw-r--r--

Update to new vendor software version and adjust patch code accordingly.
Unfortunately the vendor has apparently failed to properly test this
release which depends on missing object symbols in libsasl2.a(common.o):

undefined reference to `sasl_randcreate'
undefined reference to `sasl_mkchal'
undefined reference to `sasl_utf8verify'
undefined reference to `sasl_rand'
undefined reference to `sasl_churn'
undefined reference to `sasl_encode64'
undefined reference to `sasl_decode64'
undefined reference to `sasl_erasebuffer'
undefined reference to `sasl_randfree'
undefined reference to `sasl_strlower'
undefined reference to `get_fqhostname'

...yet to be patched.

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

mercurial