diff --git a/Userland/Utilities/userdel.cpp b/Userland/Utilities/userdel.cpp index 8efd12892c..f8d29b027f 100644 --- a/Userland/Utilities/userdel.cpp +++ b/Userland/Utilities/userdel.cpp @@ -7,7 +7,6 @@ #include #include -#include #include #include #include @@ -47,9 +46,9 @@ ErrorOr serenity_main(Main::Arguments arguments) if (access(target_account.home_directory().characters(), F_OK) == -1) return 0; - auto const real_path = Core::DeprecatedFile::real_path_for(target_account.home_directory()); + auto const real_path = TRY(FileSystem::real_path(target_account.home_directory())); - if (real_path == "/") { + if (real_path == "/"sv) { warnln("home directory is /, not deleted!"); return 12; }