Root/package/mountd/patches/010-uci_rename_history_to_delta.patch

1---
2 lib/uci.c | 2 +-
3 lib/ucix.c | 2 +-
4 2 files changed, 2 insertions(+), 2 deletions(-)
5
6--- a/lib/uci.c
7+++ b/lib/uci.c
8@@ -28,7 +28,7 @@ struct uci_package *p = NULL;
9 struct uci_context* uci_init(char *config_file)
10 {
11     struct uci_context *ctx = uci_alloc_context();
12- uci_add_history_path(ctx, "/var/state");
13+ uci_add_delta_path(ctx, "/var/state");
14     if(uci_load(ctx, config_file, &p) != UCI_OK)
15     {
16         log_printf("/etc/config/%s is missing or corrupt\n", config_file);
17--- a/lib/ucix.c
18+++ b/lib/ucix.c
19@@ -18,7 +18,7 @@ static inline int ucix_get_ptr(struct uc
20 struct uci_context* ucix_init(const char *config_file)
21 {
22     struct uci_context *ctx = uci_alloc_context();
23- uci_add_history_path(ctx, "/var/state");
24+ uci_add_delta_path(ctx, "/var/state");
25     if(uci_load(ctx, config_file, NULL) != UCI_OK)
26     {
27         printf("%s/%s is missing or corrupt\n", ctx->savedir, config_file);
28

Archive Download this file



interactive