When changing a file size the size of the corresponding inode has to be changed as well. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- fs/fs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/fs.c b/fs/fs.c index e00bbcd223..77e8f3a1e3 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -223,6 +223,7 @@ int ftruncate(int fd, loff_t length) } f->size = length; + f->f_inode->i_size = f->size; return 0; } -- 2.26.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox