diff options
author | Colin Walters <walters@verbum.org> | 2015-04-08 21:31:43 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-04-08 21:31:43 -0400 |
commit | 376219a9c276237f21c2c5aa1f0b7875a89586b6 (patch) | |
tree | 964b226fdaf867ce27fef4a81808d5e643b05ae8 /glnx-fdio.h | |
parent | dc47528f51427f8fbb274929bdbf5a8c1380e8d8 (diff) | |
download | libglnx-376219a9c276237f21c2c5aa1f0b7875a89586b6.tar.gz |
fdio: Also add a replace variant that takes mode/uid/gid
This will be used for OSTree too.
Diffstat (limited to 'glnx-fdio.h')
-rw-r--r-- | glnx-fdio.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/glnx-fdio.h b/glnx-fdio.h index a380c1f..a90544a 100644 --- a/glnx-fdio.h +++ b/glnx-fdio.h @@ -80,11 +80,22 @@ glnx_file_replace_contents_at (int dfd, const char *subpath, const guint8 *buf, gsize len, - int mode, GLnxFileReplaceFlags flags, GCancellable *cancellable, GError **error); +gboolean +glnx_file_replace_contents_with_perms_at (int dfd, + const char *subpath, + const guint8 *buf, + gsize len, + mode_t mode, + uid_t uid, + gid_t gid, + GLnxFileReplaceFlags flags, + GCancellable *cancellable, + GError **error); + char * glnx_readlinkat_malloc (int dfd, const char *subpath, |