diff options
author | Fargier Sylvain <sylvain.fargier@somfy.com> | 2013-09-17 09:47:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-23 08:40:31 +0200 |
commit | 73e20105e9dce3b4635ebf9a7aaaef9218af429a (patch) | |
tree | 5b1c4f6ba19a08b20885de21f41dfce40420281b | |
parent | f1631493e5263eca0ace5b7ecb03f9ad2bc1f17e (diff) | |
download | barebox-73e20105e9dce3b4635ebf9a7aaaef9218af429a.tar.gz barebox-73e20105e9dce3b4635ebf9a7aaaef9218af429a.tar.xz |
Fix lseek on fat filesystems.
FILE object was not updated properly when seeking.
Signed-off-by: Fargier Sylvain <sylvain.fargier@somfy.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | fs/fat/fat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 871fe4b4e1..15879c4160 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; } |