ubiformat: check file size
If size of a flash image file is 0 ubiformat silently formats the volume.
Check size and abort if size == 0. This may be the case if an empty or tftp
mounted file is used.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d10f26a commit fc01f5db567a4f423be2dac6e14e468cd78d79dc
@Jan Weitzel Jan Weitzel authored on 24 Jun 2013
Sascha Hauer committed on 24 Jun 2013
Showing 1 changed file
View
commands/ubiformat.c