summaryrefslogtreecommitdiff
path: root/Userland/Utilities/usermod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/usermod.cpp')
-rw-r--r--Userland/Utilities/usermod.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Utilities/usermod.cpp b/Userland/Utilities/usermod.cpp
index 5dce973db0..534560f9a3 100644
--- a/Userland/Utilities/usermod.cpp
+++ b/Userland/Utilities/usermod.cpp
@@ -6,7 +6,7 @@
#include <LibCore/Account.h>
#include <LibCore/ArgsParser.h>
-#include <LibCore/File.h>
+#include <LibCore/DeprecatedFile.h>
#include <LibCore/System.h>
#include <LibMain/Main.h>
#include <pwd.h>
@@ -103,11 +103,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto maybe_error = Core::System::rename(target_account.home_directory(), new_home_directory);
if (maybe_error.is_error()) {
if (maybe_error.error().code() == EXDEV) {
- auto result = Core::File::copy_file_or_directory(
+ auto result = Core::DeprecatedFile::copy_file_or_directory(
new_home_directory, target_account.home_directory().characters(),
- Core::File::RecursionMode::Allowed,
- Core::File::LinkMode::Disallowed,
- Core::File::AddDuplicateFileMarker::No);
+ Core::DeprecatedFile::RecursionMode::Allowed,
+ Core::DeprecatedFile::LinkMode::Disallowed,
+ Core::DeprecatedFile::AddDuplicateFileMarker::No);
if (result.is_error()) {
warnln("usermod: could not move directory {} : {}", target_account.home_directory().characters(), static_cast<Error const&>(result.error()));