[PATCH 1/1] Fix lseek on fat filesystems.
Sascha Hauer
s.hauer at pengutronix.de
Wed Sep 18 02:46:53 EDT 2013
On Tue, Sep 17, 2013 at 09:47:44AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> From: Fargier Sylvain <sylvain.fargier at somfy.com>
>
> FILE object was not updated properly when seeking.
>
> Signed-off-by: Fargier Sylvain <sylvain.fargier at somfy.com>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
Applied, thanks
Sascha
> ---
> fs/fat/fat.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/fat/fat.c b/fs/fat/fat.c
> index 871fe4b..15879c4 100644
> --- a/fs/fat/fat.c
> +++ b/fs/fat/fat.c
> @@ -277,6 +277,7 @@ static loff_t fat_lseek(struct device_d *dev, FILE *f, loff_t pos)
> if (ret)
> return ret;
>
> + f->pos = pos;
> return pos;
> }
>
> --
> 1.8.4.rc1
>
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list