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 1RGx6o-0006ig-Ga for garchives@archives.gentoo.org; Thu, 20 Oct 2011 18:12:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F8AC21C020; Thu, 20 Oct 2011 18:12:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E2B0821C020 for ; Thu, 20 Oct 2011 18:12:40 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4DB981B4008 for ; Thu, 20 Oct 2011 18:12:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 6DB4D80042 for ; Thu, 20 Oct 2011 18:12:39 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1efd8ec798c7ae81e19d1b781fa119e07552d538.blueness@gentoo> Subject: [gentoo-commits] proj/elfix:master commit in: src/, scripts/ X-VCS-Repository: proj/elfix X-VCS-Files: scripts/paxmodule.c src/paxctl-ng.c X-VCS-Directories: src/ scripts/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 1efd8ec798c7ae81e19d1b781fa119e07552d538 Date: Thu, 20 Oct 2011 18:12:39 +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: X-Archives-Hash: 5aa10c03abfc075a8f2abad4b4dde9c7 commit: 1efd8ec798c7ae81e19d1b781fa119e07552d538 Author: Anthony G. Basile gentoo org> AuthorDate: Thu Oct 20 18:12:31 2011 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Thu Oct 20 18:12:31 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/elfix.git;a=3D= commit;h=3D1efd8ec7 src/paxctl-ng.c: clean up error handling --- scripts/paxmodule.c | 50 ++++++------------------------------------ src/paxctl-ng.c | 60 +++++++++------------------------------------= ----- 2 files changed, 18 insertions(+), 92 deletions(-) diff --git a/scripts/paxmodule.c b/scripts/paxmodule.c index c5a7aa6..ed74430 100644 --- a/scripts/paxmodule.c +++ b/scripts/paxmodule.c @@ -65,9 +65,7 @@ get_pt_flags(int fd) GElf_Phdr phdr; size_t i, phnum; =20 - uint16_t pt_flags; - - pt_flags =3D UINT16_MAX; + uint16_t pt_flags =3D UINT16_MAX; =20 if(elf_version(EV_CURRENT) =3D=3D EV_NONE) { @@ -93,7 +91,10 @@ get_pt_flags(int fd) for(i=3D0; i