libc: sync before calling fstat()

Issue #2695
This commit is contained in:
Josef Söntgen 2018-02-27 14:07:51 +01:00 committed by Christian Helmuth
parent 9cb71d0260
commit d67e369433

View File

@ -315,6 +315,8 @@ int Libc::Vfs_plugin::dup2(Libc::File_descriptor *fd,
int Libc::Vfs_plugin::fstat(Libc::File_descriptor *fd, struct stat *buf)
{
Vfs::Vfs_handle *handle = vfs_handle(fd);
_vfs_sync(handle);
return stat(fd->fd_path, buf);
}