block: prevent mount point confusion
authorJo-Philipp Wich <jo@mein.io>
Wed, 27 Mar 2019 07:59:02 +0000 (08:59 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 31 Mar 2019 14:09:40 +0000 (16:09 +0200)
commit3957dd39c6c2413c4341258d63a913948f99ac6f
tree93b1d28c08baca76eb71ae12a049f5650a3de250
parent9b36dc25dd31197681dfcbe4e83879a9b885f451
block: prevent mount point confusion

Do not perform substring matches when identifying mount points to
avoid returning wrong entries, e.g. "/dev/mmcblk0p10" when
"/dev/mmcblk0p1" was requested.

Fixes: FS#2196
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2196
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
block.c