radiusclient/radiusclient.patch.libc

Sat, 03 Oct 2009 16:18:52 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Oct 2009 16:18:52 +0200
changeset 220
a6cd892638c1
permissions
-rw-r--r--

Update version, adjust corresponding buildconf, and correct logic.
1: Make minor corrections and improvements to scripts patch logic.
2: Upgrade to most recent stable release version 3.0.2.
3: Force selection of a single db backend, as multiple ones never
were supported (changing 'with_db<end>' identifiers accordingly.)
4: Unfortunately add gawk requirement although only partly needed.
5: Add openssl::with_threads requirement to solve strange and hard
to debug problems on Solaris leading to connection failures:

'host-dir JobId 0: Error: openssl.c:86 Connect failure: ERR=error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number'

and

'host-dir JobId 40: Fatal error: TLS negotiation failed with FD at "back1.host.com:9102"'

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

mercurial