mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibFileSystem+Everywhere: Return ByteString from read_link()
This commit is contained in:
parent
cac66aeb53
commit
8d80841e9c
Notes:
sideshowbarker
2024-07-17 05:00:08 +09:00
Author: https://github.com/AtkinsSJ
Commit: 8d80841e9c
Pull-request: https://github.com/SerenityOS/serenity/pull/22775
Reviewed-by: https://github.com/ADKaster ✅
11 changed files with 34 additions and 43 deletions
|
@ -68,7 +68,7 @@ bool FileSystemModel::Node::fetch_data(ByteString const& full_path, bool is_root
|
|||
if (sym_link_target_or_error.is_error())
|
||||
perror("readlink");
|
||||
else {
|
||||
symlink_target = sym_link_target_or_error.release_value().to_byte_string();
|
||||
symlink_target = sym_link_target_or_error.release_value();
|
||||
if (symlink_target.is_empty())
|
||||
perror("readlink");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue