summaryrefslogtreecommitdiff
path: root/uci_internal.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-04-11 18:02:51 +0200
committerJo-Philipp Wich <jow@openwrt.org>2014-04-11 18:10:27 +0200
commite339407372ffc70b1451e4eda218c01aa95a6a7f (patch)
treec59088b2f309c698477f289d8e3dd7650e871510 /uci_internal.h
parented938cc8e423d4a33b8f31e6e6d1eb0805ae3d10 (diff)
downloaduci-e339407372ffc70b1451e4eda218c01aa95a6a7f.tar.gz
Preserve original permissions when rewriting config files on commit
Patch provided by Patrick Grimm <patrick@lunatiki.de> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'uci_internal.h')
-rw-r--r--uci_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/uci_internal.h b/uci_internal.h
index 30d79a6..b4e62ff 100644
--- a/uci_internal.h
+++ b/uci_internal.h
@@ -46,7 +46,7 @@ __private void uci_add_delta(struct uci_context *ctx, struct uci_list *list, int
__private void uci_free_delta(struct uci_delta *h);
__private struct uci_package *uci_alloc_package(struct uci_context *ctx, const char *name);
-__private FILE *uci_open_stream(struct uci_context *ctx, const char *filename, int pos, bool write, bool create);
+__private FILE *uci_open_stream(struct uci_context *ctx, const char *filename, const char *origfilename, int pos, bool write, bool create);
__private void uci_close_stream(FILE *stream);
__private void uci_getln(struct uci_context *ctx, int offset);