aboutsummaryrefslogtreecommitdiff
path: root/src/clients/importare/command_line.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-06-24 01:26:14 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-06-24 01:26:14 +0100
commit571e096926ba2518e001dd1e7681cf1dfd94482d (patch)
tree08e37d825e300bf2615f0395d1075c2022f922e1 /src/clients/importare/command_line.cc
parent64f0748bd372d7fd7075d69dbdc730ffd93cc941 (diff)
downloadpaludis-571e096926ba2518e001dd1e7681cf1dfd94482d.tar.gz
paludis-571e096926ba2518e001dd1e7681cf1dfd94482d.tar.xz
importare can now change file ownership to root.
importare --rewrite-ids-over-to-root n will rewrite any uid or gid greater than n to 0. -1 disables, which is the default for now. Fixes: ticket:599
Diffstat (limited to 'src/clients/importare/command_line.cc')
-rw-r--r--src/clients/importare/command_line.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clients/importare/command_line.cc b/src/clients/importare/command_line.cc
index c01571bd0..1352096b4 100644
--- a/src/clients/importare/command_line.cc
+++ b/src/clients/importare/command_line.cc
@@ -46,6 +46,8 @@ CommandLine::CommandLine() :
"Options affecting the source image"),
a_location(&source_args, "location", 'l', "Location of source image (default: current directory)"),
a_install_under(&source_args, "install-under", 'u', "Install under a given directory (default: /)"),
+ a_rewrite_ids_over_to_root(&source_args, "rewrite-ids-over-to-root", 'r',
+ "Change any UID or GID over this value to 0 (-1 disables, default)"),
metadata_args(this, "Metadata options",
"Options affecting generated metadata"),