summaryrefslogtreecommitdiff
path: root/src/ostree/ot-admin-builtin-upgrade.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2015-02-22 16:06:39 -0500
committerColin Walters <walters@verbum.org>2015-03-25 17:24:06 -0400
commitaeab9df4fed450b2373c3b113d2b1008b33dadce (patch)
treecb578aabcb09ad00faa4c911b1eb16ccc4b1a190 /src/ostree/ot-admin-builtin-upgrade.c
parente48ea0ba0592635cb2e5d2b51d2cd1cf37c2c5d1 (diff)
downloadostree-aeab9df4fed450b2373c3b113d2b1008b33dadce.tar.gz
Add OSTREE_ADMIN_BUILTIN_FLAG_SUPERUSER
Indicates the command requires superuser privilege. Fails early with a more helpful message than would otherwise be returned by libostree. Currently all admin commands except 'status' require superuser.
Diffstat (limited to 'src/ostree/ot-admin-builtin-upgrade.c')
-rw-r--r--src/ostree/ot-admin-builtin-upgrade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-admin-builtin-upgrade.c b/src/ostree/ot-admin-builtin-upgrade.c
index a1e4aa34..25308aaf 100644
--- a/src/ostree/ot-admin-builtin-upgrade.c
+++ b/src/ostree/ot-admin-builtin-upgrade.c
@@ -68,7 +68,7 @@ ot_admin_builtin_upgrade (int argc, char **argv, GCancellable *cancellable, GErr
context = g_option_context_new ("Construct new tree from current origin and deploy it, if it changed");
if (!ostree_admin_option_context_parse (context, options, &argc, &argv,
- OSTREE_ADMIN_BUILTIN_FLAG_NONE,
+ OSTREE_ADMIN_BUILTIN_FLAG_SUPERUSER,
&sysroot, cancellable, error))
goto out;