From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2ED1D1381F3 for ; Sat, 10 Nov 2012 21:55:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4BCE9E05ED; Sat, 10 Nov 2012 21:55:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C39DDE05ED for ; Sat, 10 Nov 2012 21:55:29 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C978A33D965 for ; Sat, 10 Nov 2012 21:55:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 9D8BCE5436 for ; Sat, 10 Nov 2012 21:55:25 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1352584505.7b01e0df4cc90c829b2294a231c61a30f577a5d7.blueness@gentoo> Subject: [gentoo-commits] proj/elfix:master commit in: src/ X-VCS-Repository: proj/elfix X-VCS-Files: src/paxctl-ng.c X-VCS-Directories: src/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 7b01e0df4cc90c829b2294a231c61a30f577a5d7 X-VCS-Branch: master Date: Sat, 10 Nov 2012 21:55:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e9ba02cf-c9bc-43c2-bd45-4aa5afe072b4 X-Archives-Hash: 9437e09028808a1a902088c8ab579074 commit: 7b01e0df4cc90c829b2294a231c61a30f577a5d7 Author: Anthony G. Basile gentoo org> AuthorDate: Sat Nov 10 21:55:05 2012 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Sat Nov 10 21:55:05 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=7b01e0df src/paxctl-ng.c: only PT_PAX needs the file open RDWR to set --- src/paxctl-ng.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/paxctl-ng.c b/src/paxctl-ng.c index 61bbcce..83ed15f 100644 --- a/src/paxctl-ng.c +++ b/src/paxctl-ng.c @@ -681,20 +681,20 @@ main( int argc, char *argv[]) if(verbose) printf("%s:\n", argv[fi]); -#ifdef PTPAX if((fd = open(argv[fi], O_RDWR)) < 0) { rdwr_pt_pax = 0; +#ifdef PTPAX if(verbose) printf("\topen(O_RDWR) failed: cannot change PT_PAX flags\n"); +#endif if((fd = open(argv[fi], O_RDONLY)) < 0) { if(verbose) - printf("\topen(O_RDONLY) failed: cannot change PT_PAX flags\n\n"); + printf("\topen(O_RDONLY) failed: cannot read/change PAX flags\n\n"); continue; } } -#endif #ifdef XTPAX if(cp_flags == CREATE_XT_FLAGS_SECURE || cp_flags == CREATE_XT_FLAGS_DEFAULT)