From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/elfix:master commit in: scripts/, misc/
Date: Sun, 23 Dec 2012 03:49:33 +0000 (UTC) [thread overview]
Message-ID: <1356234519.7da069f24f757a892492d3639bd253106c3b8a05.blueness@gentoo> (raw)
commit: 7da069f24f757a892492d3639bd253106c3b8a05
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 23 01:29:13 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Dec 23 03:48:39 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=7da069f2
scripts/migrate-pax, misc/alt-revdep-pax: immediately bail if we are not root
---
misc/alt-revdep-pax | 6 ++++++
scripts/migrate-pax | 12 ++++++------
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/misc/alt-revdep-pax b/misc/alt-revdep-pax
index 58fba3c..b46fe23 100755
--- a/misc/alt-revdep-pax
+++ b/misc/alt-revdep-pax
@@ -523,6 +523,12 @@ def run_usage():
def main():
+ # Are we root?
+ uid = os.getuid()
+ if uid != 0:
+ print('This program must be run as root')
+ sys.exit(1)
+
try:
opts, args = getopt.getopt(sys.argv[1:], 'hfrb:s:l:vemy')
except getopt.GetoptError as err:
diff --git a/scripts/migrate-pax b/scripts/migrate-pax
index 1d5c2f7..09a41e2 100755
--- a/scripts/migrate-pax
+++ b/scripts/migrate-pax
@@ -55,6 +55,12 @@ def run_usage():
def main():
+ # Are we root?
+ uid = os.getuid()
+ if uid != 0:
+ print('This program must be run as root')
+ sys.exit(1)
+
try:
opts, args = getopt.getopt(sys.argv[1:], 'vmdh')
except getopt.GetoptError as err:
@@ -95,12 +101,6 @@ def main():
run_usage()
sys.exit(1)
- # Are we root?
- uid = os.getuid()
- if uid != 0 and do_migration:
- print('RUN AS ROOT: cannot migrate flags')
- sys.exit(1)
-
# Do we have XATTR_PAX support?
if do_migration or do_deleteall:
try:
next reply other threads:[~2012-12-23 3:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-23 3:49 Anthony G. Basile [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-12-23 3:49 [gentoo-commits] proj/elfix:master commit in: scripts/, misc/ Anthony G. Basile
2012-12-23 2:36 Anthony G. Basile
2012-12-23 2:36 Anthony G. Basile
2012-12-23 1:32 Anthony G. Basile
2012-12-23 1:29 Anthony G. Basile
2012-12-23 1:19 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=1356234519.7da069f24f757a892492d3639bd253106c3b8a05.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