mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Kernel: Convert ProcFS Process getters to try_serialize_absolute_path
This commit is contained in:
parent
174056a479
commit
efc61370c0
1 changed files with 2 additions and 2 deletions
|
@ -265,7 +265,7 @@ ErrorOr<void> Process::procfs_get_virtual_memory_stats(KBufferBuilder& builder)
|
|||
|
||||
ErrorOr<void> Process::procfs_get_current_work_directory_link(KBufferBuilder& builder) const
|
||||
{
|
||||
return builder.append_bytes(const_cast<Process&>(*this).current_directory().absolute_path().bytes());
|
||||
return builder.append(TRY(const_cast<Process&>(*this).current_directory().try_serialize_absolute_path())->view());
|
||||
}
|
||||
|
||||
mode_t Process::binary_link_required_mode() const
|
||||
|
@ -280,7 +280,7 @@ ErrorOr<void> Process::procfs_get_binary_link(KBufferBuilder& builder) const
|
|||
auto const* custody = executable();
|
||||
if (!custody)
|
||||
return Error::from_errno(ENOEXEC);
|
||||
return builder.append(custody->absolute_path().bytes());
|
||||
return builder.append(TRY(custody->try_serialize_absolute_path())->view());
|
||||
}
|
||||
|
||||
ErrorOr<void> Process::procfs_get_tty_link(KBufferBuilder& builder) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue