]> www.infradead.org Git - mtd-utils.git/commit
ubifs-utils: open_ubi: Set errno if the target is not char device
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 11 Nov 2024 09:01:01 +0000 (17:01 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 11 Nov 2024 09:32:45 +0000 (10:32 +0100)
commit0fb533f5695837f49f3c62c82999b37fa4f244af
tree2b49660817baf73c61e3bf1cadd4d8d4e03ab231
parent665c44e7c9135a58847ab0773fc7977929d1497c
ubifs-utils: open_ubi: Set errno if the target is not char device

Set errno if the target is not char device. It will be useful for
fsck to print error message if open_ubi failed.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubifs-utils/libubifs/super.c