mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 21:57:55 +00:00
noux: pass correct mode to Fs_vfs_handle
This patch resolves a problem with running 'noux_gdb.run'. Right at the start, GDB would output a message like: ...cli-script.c:1614: internal-error: called with NULL file pointer! A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) The LOG output hints at the cause of the problem: [init -> noux -> /bin/genode-x86-gdb] fcntl: F_GETFL for libc_fd=3 Thanks to cproc for the fix!
This commit is contained in:
parent
de5d5c2a1e
commit
e60eb0f57f
@ -410,7 +410,7 @@ namespace Noux {
|
||||
::File_system::File_handle file = _fs.file(dir, file_name.base() + 1,
|
||||
mode, create);
|
||||
|
||||
return new (env()->heap()) Fs_vfs_handle(this, mode, file);
|
||||
return new (env()->heap()) Fs_vfs_handle(this, sysio->open_in.mode, file);
|
||||
}
|
||||
catch (::File_system::Permission_denied) {
|
||||
error = Sysio::OPEN_ERR_NO_PERM; }
|
||||
|
Loading…
Reference in New Issue
Block a user