From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14500 invoked by alias); 19 Dec 2004 19:26:50 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 14478 invoked from network); 19 Dec 2004 19:26:49 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sourceware.org with SMTP; 19 Dec 2004 19:26:49 -0000 Received: from hermes.suse.de (hermes-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id E061F1240AB7 for ; Sun, 19 Dec 2004 20:26:48 +0100 (CET) Received: from aj by arthur.inka.de with local (Exim 4.42) id 1Cg6WR-0006aN-L5 for libc-hacker@sources.redhat.com; Sun, 19 Dec 2004 20:15:15 +0100 From: Andreas Jaeger To: Glibc hackers Subject: Fix sunrpc/xcrypt.c for GCC 4.0 Date: Sun, 19 Dec 2004 19:26:00 -0000 Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2004-12/txt/msg00063.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1483 Ok to commit the appended patch to fix xcrypt with GCC 4.0? This is similar to a patch by Alexandre for getnetgrent_r. Andreas 2004-12-19 Andreas Jaeger [BZ #573] * sunrpc/xcrypt.c (passwd2des_internal): Make it hidden instead of internal linkage. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Index: sunrpc/xcrypt.c --- sunrpc/xcrypt.c 17 Sep 2002 10:58:00 -0000 1.7 +++ sunrpc/xcrypt.c 19 Dec 2004 15:13:10 -0000 @@ -69,13 +69,15 @@ static char hexval (char) internal_funct =20 static void hex2bin (int, char *, char *) internal_function; static void bin2hex (int, unsigned char *, char *) internal_function; -static void passwd2des_internal (char *pw, char *key); - +void passwd2des_internal (char *pw, char *key); +#ifdef _LIBC +libc_hidden_proto (passwd2des_internal) +#endif =20 /* * Turn password into DES key */ -static void +void passwd2des_internal (char *pw, char *key) { int i; @@ -88,6 +90,7 @@ passwd2des_internal (char *pw, char *key } =20 #ifdef _LIBC +libc_hidden_def (passwd2des_internal) strong_alias (passwd2des_internal, passwd2des) #else void passwd2des (char *pw, char *key) --=20 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GPG fingerprint =3D 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 --=-=-= Content-Type: application/pgp-signature Content-length: 188 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBBxdNDOJpWPMJyoSYRAotmAJ9TNHYCpTHSej9gsQwS8CevpTYRLACfWiGc 00F1OMf6H+yP3/fb9m3aaCA= =5poV -----END PGP SIGNATURE----- --=-=-=--