mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 18:23:39 +00:00
LibFileSystem+Userland: Return ByteString from real_path()
This commit is contained in:
parent
cdf17efb9a
commit
56c5ffe398
Notes:
sideshowbarker
2024-07-16 23:13:25 +09:00
Author: https://github.com/AtkinsSJ
Commit: 56c5ffe398
Pull-request: https://github.com/SerenityOS/serenity/pull/22775
Reviewed-by: https://github.com/ADKaster ✅
25 changed files with 44 additions and 40 deletions
|
@ -174,14 +174,14 @@ int main(int argc, char** argv)
|
|||
warnln("Failed to resolve test root: {}", test_root_or_error.error());
|
||||
return 1;
|
||||
}
|
||||
test_root = test_root_or_error.release_value().to_byte_string();
|
||||
test_root = test_root_or_error.release_value();
|
||||
|
||||
auto common_path_or_error = FileSystem::real_path(common_path);
|
||||
if (common_path_or_error.is_error()) {
|
||||
warnln("Failed to resolve common path: {}", common_path_or_error.error());
|
||||
return 1;
|
||||
}
|
||||
common_path = common_path_or_error.release_value().to_byte_string();
|
||||
common_path = common_path_or_error.release_value();
|
||||
|
||||
if (chdir(test_root.characters()) < 0) {
|
||||
auto saved_errno = errno;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue