diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2016-03-11 11:36:21 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2016-03-15 09:48:47 +0100 |
commit | a98133072d0f44ac18a9a70669b0ffcd509620b8 (patch) | |
tree | 8f14084e859baae5e67889a9f99f44e706c8c523 /src/libotutil/ot-fs-utils.h | |
parent | 89514dd8ba807f10460ddcbb6a033f79706d0d0c (diff) | |
download | ostree-a98133072d0f44ac18a9a70669b0ffcd509620b8.tar.gz |
libotutil: new function ot_openat_ignore_enoent
Refactor some common code
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'src/libotutil/ot-fs-utils.h')
-rw-r--r-- | src/libotutil/ot-fs-utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libotutil/ot-fs-utils.h b/src/libotutil/ot-fs-utils.h index 10686be6..cfeea74d 100644 --- a/src/libotutil/ot-fs-utils.h +++ b/src/libotutil/ot-fs-utils.h @@ -61,4 +61,9 @@ gboolean ot_ensure_unlinked_at (int dfd, const char *path, GError **error); +gboolean ot_openat_ignore_enoent (int dfd, + const char *path, + int *out_fd, + GError **error); + G_END_DECLS |