mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-12 07:52:44 +00:00
noux: pass correct paths for stdio to Vfs_io_channel
Pass both paths, absolute path to the mount point and the relative path from the mount point to the file, along with an open handle rather than just an absolute path. Otherwise, fstat fails if the addressed file is implemented by another VFS plugin. Fixes #1789
This commit is contained in:
parent
5f371c9a3d
commit
e09752a26f
@ -1062,7 +1062,7 @@ static Noux::Io_channel *connect_stdio(Vfs::Dir_file_system &root,
|
|||||||
}
|
}
|
||||||
|
|
||||||
return new (Genode::env()->heap())
|
return new (Genode::env()->heap())
|
||||||
Vfs_io_channel("", path, &root, vfs_handle, sig_rec);
|
Vfs_io_channel(path, root.leaf_path(path), &root, vfs_handle, sig_rec);
|
||||||
|
|
||||||
} catch (Genode::Xml_node::Nonexistent_attribute) {
|
} catch (Genode::Xml_node::Nonexistent_attribute) {
|
||||||
PWRN("%s VFS path not defined, connecting to Terminal session", stdio_name);
|
PWRN("%s VFS path not defined, connecting to Terminal session", stdio_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user