diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2015-01-16 10:04:18 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-03-25 17:24:05 -0400 |
commit | 7941189dfde3795fb649aba41e207f0072dfcd86 (patch) | |
tree | 4eb523fd9610e014df0f8f7ba2411ba3b56a6fc9 /src/ostree/ot-main.h | |
parent | a25c7fab129779483012c4b52c1d0ef54878cc69 (diff) | |
download | ostree-7941189dfde3795fb649aba41e207f0072dfcd86.tar.gz |
Add ostree_ensure_repo_writable()
Commands that need to write files within the repo directory can call
this early to ensure the directory is writable for the current user.
If not, it fails with a helpful "You need to be root to perform this
command" message.
Diffstat (limited to 'src/ostree/ot-main.h')
-rw-r--r-- | src/ostree/ot-main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ostree/ot-main.h b/src/ostree/ot-main.h index 5f31b240..659727f3 100644 --- a/src/ostree/ot-main.h +++ b/src/ostree/ot-main.h @@ -51,3 +51,5 @@ gboolean ostree_admin_option_context_parse (GOptionContext *context, int *argc, char ***argv, OstreeSysroot **out_sysroot, GCancellable *cancellable, GError **error); + +gboolean ostree_ensure_repo_writable (OstreeRepo *repo, GError **error); |