From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RdQ3Z-0004xJ-SN for garchives@archives.gentoo.org; Wed, 21 Dec 2011 17:34:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A35C921C0BD; Wed, 21 Dec 2011 17:34:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 71E9321C0BD for ; Wed, 21 Dec 2011 17:34:14 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D7F8D1B4021 for ; Wed, 21 Dec 2011 17:34:13 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id A72D62004B; Wed, 21 Dec 2011 17:34:12 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-projects commit in pax-utils: scanelf.c X-VCS-Repository: gentoo-projects X-VCS-Files: scanelf.c X-VCS-Directories: pax-utils X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: <20111221173412.A72D62004B@flycatcher.gentoo.org> Date: Wed, 21 Dec 2011 17:34:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 7ae07b35-945c-45e1-aa7a-077560ff9a89 X-Archives-Hash: 19adc3bd71aa9c086c5e016e72b5f47a vapier 11/12/21 17:34:12 Modified: scanelf.c Log: support ! negation with the -N (SONAME) operator Revision Changes Path 1.236 pax-utils/scanelf.c file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/sca= nelf.c?rev=3D1.236&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/sca= nelf.c?rev=3D1.236&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/sca= nelf.c?r1=3D1.235&r2=3D1.236 Index: scanelf.c =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=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v retrieving revision 1.235 retrieving revision 1.236 diff -u -r1.235 -r1.236 --- scanelf.c 13 Dec 2011 05:12:14 -0000 1.235 +++ scanelf.c 21 Dec 2011 17:34:12 -0000 1.236 @@ -1,13 +1,13 @@ /* * Copyright 2003-2007 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.235 201= 1/12/13 05:12:14 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.236 201= 1/12/21 17:34:12 vapier Exp $ * * Copyright 2003-2007 Ned Ludd - * Copyright 2004-2007 Mike Frysinger - */ =20 -static const char rcsid[] =3D "$Id: scanelf.c,v 1.235 2011/12/13 05:12:1= 4 vapier Exp $"; +static const char rcsid[] =3D "$Id: scanelf.c,v 1.236 2011/12/21 17:34:1= 2 vapier Exp $"; const char argv0[] =3D "scanelf"; =20 #include "paxinc.h" @@ -971,9 +971,13 @@ size_t n; \ const char *find_lib_name; \ \ - array_for_each(find_lib_arr, n, find_lib_name) \ - if (!strcmp(find_lib_name, needed)) \ + array_for_each(find_lib_arr, n, find_lib_name) { \ + int invert =3D 1; \ + if (find_lib_name[0] =3D=3D '!') \ + invert =3D 0, ++find_lib_name; \ + if (!strcmp(find_lib_name, needed) =3D=3D invert) \ ++matched; \ + } \ \ if (matched =3D=3D array_cnt(find_lib_arr)) { \ *found_lib =3D 1; \