summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2023-05-20 10:39:14 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-21 07:50:52 +0200
commit9e755ccfef4d45d3ae6b48731a7fe49b94a3db60 (patch)
tree368030694f4df81e3b8ca222cfa91fc459d1ff0d /Userland/Utilities
parent666e312693c72ef7d741c5eeff38160b38f32662 (diff)
downloadserenity-9e755ccfef4d45d3ae6b48731a7fe49b94a3db60.zip
wasm: Prefer LibFileSystem over DeprecatedFile
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/CMakeLists.txt2
-rw-r--r--Userland/Utilities/wasm.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Utilities/CMakeLists.txt b/Userland/Utilities/CMakeLists.txt
index a54608e13a..60d5c735ab 100644
--- a/Userland/Utilities/CMakeLists.txt
+++ b/Userland/Utilities/CMakeLists.txt
@@ -148,7 +148,7 @@ target_link_libraries(useradd PRIVATE LibCrypt)
target_link_libraries(userdel PRIVATE LibFileSystem)
target_link_libraries(usermod PRIVATE LibFileSystem)
target_link_libraries(wallpaper PRIVATE LibGfx LibGUI)
-target_link_libraries(wasm PRIVATE LibWasm LibLine LibJS)
+target_link_libraries(wasm PRIVATE LibFileSystem LibJS LibLine LibWasm)
target_link_libraries(watch PRIVATE LibFileSystem)
target_link_libraries(which PRIVATE LibFileSystem)
target_link_libraries(wsctl PRIVATE LibGUI LibIPC)
diff --git a/Userland/Utilities/wasm.cpp b/Userland/Utilities/wasm.cpp
index 8e15cbac52..06604f5f02 100644
--- a/Userland/Utilities/wasm.cpp
+++ b/Userland/Utilities/wasm.cpp
@@ -7,9 +7,9 @@
#include <AK/MemoryStream.h>
#include <LibCore/ArgsParser.h>
-#include <LibCore/DeprecatedFile.h>
#include <LibCore/File.h>
#include <LibCore/MappedFile.h>
+#include <LibFileSystem/FileSystem.h>
#include <LibLine/Editor.h>
#include <LibMain/Main.h>
#include <LibWasm/AbstractMachine/AbstractMachine.h>
@@ -387,11 +387,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
for (auto& string : wasi_preopened_mappings) {
auto split_index = string.find(':');
if (split_index.has_value()) {
- LexicalPath host_path { Core::DeprecatedFile::real_path_for(string.substring_view(0, *split_index)) };
+ LexicalPath host_path { FileSystem::real_path(string.substring_view(0, *split_index)).release_value_but_fixme_should_propagate_errors().to_deprecated_string() };
LexicalPath mapped_path { string.substring_view(*split_index + 1) };
paths.append({move(host_path), move(mapped_path)});
} else {
- LexicalPath host_path { Core::DeprecatedFile::real_path_for(string) };
+ LexicalPath host_path { FileSystem::real_path(string).release_value_but_fixme_should_propagate_errors().to_deprecated_string() };
LexicalPath mapped_path { string };
paths.append({move(host_path), move(mapped_path)});
}