1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:55:08 +00:00

Kernel: Don't forget to copy & destroy root_directory_for_procfs

Also, rename it to root_directory_relative_to_global_root.
This commit is contained in:
Sergey Bugaev 2020-01-12 21:42:01 +03:00 committed by Andreas Kling
parent 8ca6e63119
commit 33c0dc08a7
3 changed files with 10 additions and 8 deletions

View file

@ -577,7 +577,7 @@ Optional<KBuffer> procfs$pid_root(InodeIdentifier identifier)
auto handle = ProcessInspectionHandle::from_pid(to_pid(identifier));
if (!handle)
return {};
return handle->process().root_directory_for_procfs().absolute_path().to_byte_buffer();
return handle->process().root_directory_relative_to_global_root().absolute_path().to_byte_buffer();
}
Optional<KBuffer> procfs$self(InodeIdentifier)