public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/elfix:master commit in: src/, scripts/
Date: Sat, 21 Jul 2012 17:09:20 +0000 (UTC)	[thread overview]
Message-ID: <1342890549.204e81fcca1eca0b1f3f3f5f24c47024a3fa65c4.blueness@gentoo> (raw)

commit:     204e81fcca1eca0b1f3f3f5f24c47024a3fa65c4
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 21 17:09:09 2012 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Jul 21 17:09:09 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=204e81fc

Replace XATTR_REPLACE with 0 to create on set

---
 scripts/paxmodule.c |    2 +-
 src/paxctl-ng.c     |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/paxmodule.c b/scripts/paxmodule.c
index ba81110..8a3a6e6 100644
--- a/scripts/paxmodule.c
+++ b/scripts/paxmodule.c
@@ -295,7 +295,7 @@ set_xt_flags(int fd, uint16_t xt_flags)
 
 	memset(buf, 0, FLAGS_SIZE);
 	bin2string(xt_flags, buf);
-	fsetxattr(fd, PAX_NAMESPACE, buf, strlen(buf), XATTR_REPLACE);
+	fsetxattr(fd, PAX_NAMESPACE, buf, strlen(buf), 0);
 }
 #endif
 

diff --git a/src/paxctl-ng.c b/src/paxctl-ng.c
index 30584db..025ea24 100644
--- a/src/paxctl-ng.c
+++ b/src/paxctl-ng.c
@@ -513,7 +513,7 @@ set_xt_flags(int fd, uint16_t xt_flags)
 
 	memset(buf, 0, FLAGS_SIZE);
 	bin2string(xt_flags, buf);
-	fsetxattr(fd, PAX_NAMESPACE, buf, strlen(buf), XATTR_REPLACE);
+	fsetxattr(fd, PAX_NAMESPACE, buf, strlen(buf), 0);
 }
 #endif
 
@@ -617,7 +617,7 @@ main( int argc, char *argv[])
 			copy_xt_flags(fd, cp_flags, verbose);
 #endif
 
-		if(pax_flags != 1)
+		if(pax_flags != 0)
 			set_flags(fd, &pax_flags, rdwr_pt_pax, verbose);
 
 		if(verbose == 1)


             reply	other threads:[~2012-07-21 20:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-21 17:09 Anthony G. Basile [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-11-10 20:52 [gentoo-commits] proj/elfix:master commit in: src/, scripts/ Anthony G. Basile
2011-10-21 21:19 Anthony G. Basile
2011-10-20 18:12 Anthony G. Basile
2011-10-20 17:09 Anthony G. Basile
2011-10-20 14:12 Anthony G. Basile
2011-10-18 18:15 Anthony G. Basile

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1342890549.204e81fcca1eca0b1f3f3f5f24c47024a3fa65c4.blueness@gentoo \
    --to=blueness@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox