[LEDE-DEV] [PATCH] Fix skipping directories in uci_list_config_files

2016-11-22 Thread Michal 'vorner' Vaner
Don't create a hole in the array of configs if there's a directory. Such a hole would be mistaken for the end of the array. Signed-off-by: Michal 'vorner' Vaner --- file.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/file.c b/file.c in

[LEDE-DEV] Fix of uci show (and similar) when /etc/config contains subdirectories

2016-11-22 Thread Michal 'vorner' Vaner
Hello It was pointed to me by a user that when the /etc/config contains subdirectories, uci show lists everything only up to the first subdirectory and then stops. It turns out the uci_list_config_files returns an array which has holes (NULLs) in places of the subdirectories, as it tries to filte