projects
/
oweals
/
fstools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35aa20c
)
block: fix ubi?_? glob pattern
author
Daniel Golle
<daniel@makrotopia.org>
Wed, 20 Jul 2016 23:20:10 +0000
(
01:20
+0200)
committer
Daniel Golle
<daniel@makrotopia.org>
Wed, 20 Jul 2016 23:38:33 +0000
(
01:38
+0200)
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 <daniel@makrotopia.org>
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index 13992f20ebbce0bccb0fb664188c6d2b3e9a3c81..4d823e6bec562685c4b8770fab694f94271aa9dc 100644
(file)
--- 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*");