From e09752a26f1d2845df49019f2af9838bbd7d9f8c Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 24 Nov 2015 14:41:28 +0100 Subject: [PATCH] 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 --- repos/ports/src/noux/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/ports/src/noux/main.cc b/repos/ports/src/noux/main.cc index dc64da23b6..46f229f043 100644 --- a/repos/ports/src/noux/main.cc +++ b/repos/ports/src/noux/main.cc @@ -1062,7 +1062,7 @@ static Noux::Io_channel *connect_stdio(Vfs::Dir_file_system &root, } 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) { PWRN("%s VFS path not defined, connecting to Terminal session", stdio_name);