From 8c74ca9f613746b9c1f54a17f576a0cd449a8cc6 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 23 Jul 2013 13:43:10 +0200 Subject: [PATCH] allow mtd devices to be mounted by block tool Signed-off-by: John Crispin --- block.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block.c b/block.c index 1c78a72..5ae0fd0 100644 --- a/block.c +++ b/block.c @@ -513,7 +513,7 @@ static int mount_device(struct blkid_struct_probe *pr, int hotplug) if (m) { char *target = m->target; - char _target[] = "/mnt/mmcblk123"; + char _target[32]; int err = 0; if (!target) { @@ -804,7 +804,7 @@ static int main_mount(int argc, char **argv) if (config_load(NULL)) return -1; - cache_load(0); + cache_load(1); list_for_each_entry(pr, &devices, list) mount_device(pr, 0); -- 2.25.1