summaryrefslogtreecommitdiff
path: root/src/ostree/ot-admin-builtin-diff.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-diff.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-diff.c')
-rw-r--r--src/ostree/ot-admin-builtin-diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-admin-builtin-diff.c b/src/ostree/ot-admin-builtin-diff.c
index be225d9e..ede1f6e7 100644
--- a/src/ostree/ot-admin-builtin-diff.c
+++ b/src/ostree/ot-admin-builtin-diff.c
@@ -56,7 +56,7 @@ ot_admin_builtin_diff (int argc, char **argv, GCancellable *cancellable, GError
g_option_context_add_main_entries (context, options, NULL);
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;