diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 871fe4b4e..15879c416 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; }