From: Felix Fietkau Date: Wed, 30 Jan 2008 02:05:37 +0000 (+0100) Subject: disable history tracking for non-confdir files X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=92f4eac56f3cf1bf21c352193e3bf40723a6e87f;p=oweals%2Fuci.git disable history tracking for non-confdir files --- diff --git a/list.c b/list.c index fb5e686..18de500 100644 --- a/list.c +++ b/list.c @@ -174,6 +174,9 @@ uci_add_history(struct uci_context *ctx, struct uci_package *p, int cmd, char *s int size = strlen(section) + 1; char *ptr; + if (!p->confdir) + return; + if (value) size += strlen(section) + 1;