libfile: open_and_lseek: enlarge small files enough to make lseek possible
This makes the following do the expected thing:

	barebox@barebox sandbox:/ ls -l lala
	-rwxrwxrwx              4 lala
	barebox@barebox sandbox:/ mw -d lala 72 0

Without this patch mw dies with

	lseek: Invalid argument

memset, memcpy and probably others benefit in the same way.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent cde598f commit 686d35f88db5779786b862205a503cffdb1a5bde
@Uwe Kleine-König Uwe Kleine-König authored on 9 Aug 2018
Sascha Hauer committed on 10 Aug 2018
Showing 1 changed file
View
lib/libfile.c