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 1QI7Da-0002Bp-Fd for garchives@archives.gentoo.org; Thu, 05 May 2011 22:40:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ECD741C002; Thu, 5 May 2011 22:40:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A68061C002 for ; Thu, 5 May 2011 22:40:14 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 00F2C2AC01D for ; Thu, 5 May 2011 22:40:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 59B6280505 for ; Thu, 5 May 2011 22:40:13 +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: Subject: [gentoo-commits] proj/elfix:master commit in: src/ X-VCS-Repository: proj/elfix X-VCS-Files: src/fix-gnustack.c X-VCS-Directories: src/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: ff3437254e74ee47897425b217541b8362f17a20 Date: Thu, 5 May 2011 22:40:13 +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: b02bd026926b932f020b3a4355a27313 commit: ff3437254e74ee47897425b217541b8362f17a20 Author: Anthony G. Basile opensource dyc edu= > AuthorDate: Thu May 5 22:38:50 2011 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Thu May 5 22:38:50 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/elfix.git;a=3D= commit;h=3Dff343725 src/fix-gnustack.c: improved error messages --- src/fix-gnustack.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fix-gnustack.c b/src/fix-gnustack.c index 8315873..75d72ea 100644 --- a/src/fix-gnustack.c +++ b/src/fix-gnustack.c @@ -75,14 +75,14 @@ main( int argc, char *argv[]) if((fd =3D open(f_name, O_RDWR)) < 0) error(EXIT_FAILURE, 0, "open() fail."); if((elf =3D elf_begin(fd, ELF_C_RDWR_MMAP, NULL)) =3D=3D NULL) - error(EXIT_FAILURE, 0, "elf_begin() fail: %s", elf_errmsg(-1)); + error(EXIT_FAILURE, 0, "elf_begin() fail: %s", elf_errmsg(elf_errno()= )); } else { if((fd =3D open(f_name, O_RDONLY)) < 0) error(EXIT_FAILURE, 0, "open() fail."); if((elf =3D elf_begin(fd, ELF_C_READ, NULL)) =3D=3D NULL) - error(EXIT_FAILURE, 0, "elf_begin() fail: %s", elf_errmsg(-1)); + error(EXIT_FAILURE, 0, "elf_begin() fail: %s", elf_errmsg(elf_errno()= )); } =20 if(elf_kind(elf) !=3D ELF_K_ELF) @@ -92,7 +92,7 @@ main( int argc, char *argv[]) for(i=3D0; i