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-18 09:16:45 +0200 |
commit | 426aa6d9ecd73873ce540550da4edaf48afee204 (patch) | |
tree | af39600d7be64cd967e6e191ad8c67d0ec6e683d /fs | |
parent | dc27fc1e80f7000cce574d7c71a2024ae1d7f925 (diff) | |
download | barebox-426aa6d9ecd73873ce540550da4edaf48afee204.tar.gz barebox-426aa6d9ecd73873ce540550da4edaf48afee204.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>
Diffstat (limited to 'fs')
-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; } |