From 5b61e27d36e5bbf40825a4ae14920efe47d36f02 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Thu, 21 Jul 2016 01:20:10 +0200 Subject: [PATCH] block: fix ubi?_? glob pattern The glob pattern intended for ubi?_? devices was matching ubiblock?_? devices as well. Change the glob to actually return only ubi devices. Signed-off-by: Daniel Golle --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block.c b/block.c index 13992f2..4d823e6 100644 --- a/block.c +++ b/block.c @@ -506,7 +506,7 @@ static void cache_load(int mtd) if (mtd) { _cache_load("/dev/mtdblock*"); _cache_load("/dev/ubiblock*"); - _cache_load("/dev/ubi?*_?*"); + _cache_load("/dev/ubi[0-9]*"); } _cache_load("/dev/mmcblk*"); _cache_load("/dev/sd*"); -- 2.25.1