diff --git a/repos/libports/src/lib/libc/vfs_plugin.cc b/repos/libports/src/lib/libc/vfs_plugin.cc index e23fb7fe71..1b644658bd 100644 --- a/repos/libports/src/lib/libc/vfs_plugin.cc +++ b/repos/libports/src/lib/libc/vfs_plugin.cc @@ -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); }