Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace malloc() + memset() with calloc() | Hauke Mehrtens | 2020-10-06 | 1 | -2/+1 |
| | | | | | | Instead of manually clearing the memory with memset() use calloc(). Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> | ||||
* | util: Fix error path | Hauke Mehrtens | 2019-11-01 | 1 | -2/+6 |
| | | | | | | | Unlock and close the stream in case some file operations in uci_open_stream() fail. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> | ||||
* | allow "-" in package names | Felix Fietkau | 2014-12-18 | 1 | -7/+11 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | fix a few formatting issues | Felix Fietkau | 2014-11-25 | 1 | -5/+3 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | Use offset into parser buffer to avoid potential heap overflow. | Yousong Zhou | 2014-11-25 | 1 | -4/+7 |
| | | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> | ||||
* | Preserve original permissions when rewriting config files on commit | Jo-Philipp Wich | 2014-04-11 | 1 | -2/+6 |
| | | | | | | Patch provided by Patrick Grimm <patrick@lunatiki.de> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> | ||||
* | file: make uci commits atomic | Luka Perkov | 2013-10-15 | 1 | -2/+2 |
| | | | | | | | | | Avoids issues with UBIFS file system. http://www.linux-mtd.infradead.org/faq/ubifs.html#L_atomic_change Signed-off-by: Luka Perkov <luka@openwrt.org> Reported-by: Tim Harvey <tharvey@gateworks.com> | ||||
* | util: fix compile error | Felix Fietkau | 2013-06-10 | 1 | -1/+2 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | uci: copy permisions of /etc/config/ files for temp files | Etienne CHAMPETIER | 2013-04-24 | 1 | -5/+18 |
| | | | | | | | | | | | | | | | | Hi Using uci as a non root user i can get network configuration but not network state (for exemple). The idea of this patch is to copy permission from config file, or if it doesn't exist use UCI_FILEMODE / UCI_DIRMODE Tested on tplink wr1043nd. (you have to remove some mkdir from /etc/init.d/boot to fully see this patch work) If you apply this patch (or a modified version), please also backport to AA Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel | ||||
* | remove plugin support, it has been unused for a long time and should not be ↵ | Felix Fietkau | 2013-01-04 | 1 | -4/+4 |
| | | | | | | used for any new code Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | fix lgpl license headers | Felix Fietkau | 2011-08-31 | 1 | -1/+1 |
| | |||||
* | split off and compile util.c separately | Felix Fietkau | 2010-08-20 | 1 | -16/+6 |
| | |||||
* | split off and compile file.c separately | Felix Fietkau | 2010-08-20 | 1 | -252/+4 |
| | |||||
* | don't bail out on locking errors, when flock() is not supportedv0.7.5 | Felix Fietkau | 2009-04-23 | 1 | -1/+3 |
| | |||||
* | add missing fflush() on close - fixes a bug in the lock/unlock order (thx, ↵v0.7.4 | Felix Fietkau | 2009-03-24 | 1 | -0/+1 |
| | | | | Cyrus) | ||||
* | fix signed vs unsigned char validation bugv0.7.3 | Felix Fietkau | 2009-01-20 | 1 | -3/+4 |
| | |||||
* | overhaul package and section type validation - makes it easier to read and ↵ | Felix Fietkau | 2008-09-05 | 1 | -1/+11 |
| | | | | fixes some bugs in uci changes and uci show without explicit package references | ||||
* | fix segfault in uci batch | Felix Fietkau | 2008-08-31 | 1 | -7/+7 |
| | |||||
* | add an extra option check for tuple parsing | Felix | 2008-08-26 | 1 | -0/+5 |
| | |||||
* | remove uci_parse_tuple, preparation for adding a new api for lookups | Felix Fietkau | 2008-08-22 | 1 | -28/+26 |
| | |||||
* | implement extended uci lookup syntax | Felix Fietkau | 2008-08-17 | 1 | -2/+3 |
| | |||||
* | another onev0.4.8 | Felix Fietkau | 2008-07-31 | 1 | -2/+3 |
| | |||||
* | fix a really stupid bugv0.4.7 | Felix Fietkau | 2008-07-31 | 1 | -0/+1 |
| | |||||
* | some more input validationv0.4.5 | Felix Fietkau | 2008-07-30 | 1 | -0/+14 |
| | |||||
* | allow more types of characters for uci package namesv0.3.4 | Felix Fietkau | 2008-05-03 | 1 | -1/+1 |
| | |||||
* | parser: fix precedence of quoting over ; as command terminator, thx to ↵v0.3.1 | Felix Fietkau | 2008-04-08 | 1 | -2/+11 |
| | | | | netprince for spotting the bug | ||||
* | more functionality for plugins | Felix Fietkau | 2008-02-12 | 1 | -1/+1 |
| | |||||
* | more plugin support | Felix Fietkau | 2008-02-12 | 1 | -3/+3 |
| | |||||
* | fix uci_set | Felix Fietkau | 2008-02-12 | 1 | -1/+0 |
| | |||||
* | reorganize some code, add an extra command for adding unnamed sections | Felix Fietkau | 2008-02-09 | 1 | -3/+19 |
| | |||||
* | use strsep instead of strtok to avoid a segfault | Felix Fietkau | 2008-02-06 | 1 | -3/+3 |
| | |||||
* | fix uci_parse_tuplev0.2.4 | Felix Fietkau | 2008-02-05 | 1 | -7/+6 |
| | |||||
* | fix an off-by-one error that prevented the open() check from succeeding, if ↵v0.2.2 | Felix Fietkau | 2008-02-05 | 1 | -1/+1 |
| | | | | stdin is closed | ||||
* | improve the argument parser | Felix Fietkau | 2008-02-05 | 1 | -6/+18 |
| | |||||
* | export a function for parsing shell-style arguments in libuci | Felix Fietkau | 2008-02-04 | 1 | -1/+174 |
| | |||||
* | improve validation, accept more characters in the section typev0.1.2 | Felix Fietkau | 2008-02-04 | 1 | -3/+16 |
| | |||||
* | implement uci revert | Felix Fietkau | 2008-02-03 | 1 | -0/+5 |
| | |||||
* | move history code into history.c | Felix Fietkau | 2008-02-03 | 1 | -0/+113 |
| | |||||
* | constify | Felix Fietkau | 2008-02-02 | 1 | -1/+1 |
| | |||||
* | fix updated parse_tuple function | Felix Fietkau | 2008-01-29 | 1 | -0/+1 |
| | |||||
* | more input validation | Felix Fietkau | 2008-01-29 | 1 | -4/+4 |
| | |||||
* | cleanup, move parse_tuple to libuci, add some input validation | Felix Fietkau | 2008-01-29 | 1 | -0/+63 |
| | |||||
* | implement more suggestions by lorenz schori | Felix Fietkau | 2008-01-23 | 1 | -0/+52 |