From: Daniel Golle Date: Wed, 20 Jul 2016 23:20:10 +0000 (+0200) Subject: block: fix ubi?_? glob pattern X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5b61e27d36e5bbf40825a4ae14920efe47d36f02;p=oweals%2Ffstools.git 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 --- 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*");