openwrt/package
Daniel Kestrel 94efa1c612 fritz-tools: fix returning wrong values due to strncmp usage
When having two keys that start with the same characters and the second
key just has one character more nand_tffs_read and tffs_read return the
wrong value for the longer key. This is due to the usage of strncmp in
combination with the length of the shorter key which is usually first in
the list before the longer key and when strncmp matches, the search is
stopped. The problem only occurs when the length of the two keys is
different, not if just the last character is different. The fix is to
use strcmp and as such it will only return the value if the key (name)
and the key to look for (namefilter) have the same value and length. A
sample case returning wrong values is when keys macwlan and macwlan2 are
defined and querying macwlan2 returns the value for macwlan.

Signed-off-by: Daniel Kestrel <kestrel1974@t-online.de>
(cherry picked from commit 12564c5b86)
2021-08-08 20:51:52 +02:00
..
base-files OpenWrt v21.02.0-rc4: revert to branch defaults 2021-08-01 19:39:03 +02:00
boot ramips: add support for Linksys EA8100 v1 2021-06-10 17:09:35 +02:00
devel binutils: fix libbfd missing DSO dependency if NLS enabled 2021-04-10 14:22:28 +02:00
firmware wireless-regdb: update to version 2021.04.21 2021-06-08 20:44:12 +02:00
kernel ath10k-ct: fix typo in Makefile 2021-07-02 16:19:33 +02:00
libs mbedtls: update to 2.16.11 2021-08-08 20:51:41 +02:00
network dnsmasq: reset EXTRA_MOUNT in the right place 2021-08-02 21:42:46 +01:00
system treewide: unmark selected packages nonshared 2021-07-02 18:15:02 +02:00
utils fritz-tools: fix returning wrong values due to strncmp usage 2021-08-08 20:51:52 +02:00
Makefile build: always build package/kernel/linux 2020-10-15 13:25:58 +02:00