mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] Fix lseek on fat filesystems.
@ 2013-09-17  7:47 Jean-Christophe PLAGNIOL-VILLARD
  2013-09-18  6:46 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-09-17  7:47 UTC (permalink / raw)
  To: barebox; +Cc: Fargier Sylvain

From: Fargier Sylvain <sylvain.fargier@somfy.com>

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>
---
 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-18  6:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-17  7:47 [PATCH 1/1] Fix lseek on fat filesystems Jean-Christophe PLAGNIOL-VILLARD
2013-09-18  6:46 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox