summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-30 14:05:34 +0100
committerLinus Groh <mail@linusgroh.de>2021-05-30 14:07:58 +0100
commit7b79758fc644a83b42d478fb8730fb115a843eb2 (patch)
tree55b496ec9c79d287c21427b53899574b15874693 /Userland
parent65528d86d5cb9ad2b8926e1edc3b11c079354819 (diff)
downloadserenity-7b79758fc644a83b42d478fb8730fb115a843eb2.zip
userdel: Replace fprintf(stderr) with warnln()
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Utilities/userdel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Utilities/userdel.cpp b/Userland/Utilities/userdel.cpp
index a87831e7ca..98c43e5e7d 100644
--- a/Userland/Utilities/userdel.cpp
+++ b/Userland/Utilities/userdel.cpp
@@ -99,7 +99,7 @@ int main(int argc, char** argv)
}
if (rc == 0 && !user_exists) {
- fprintf(stderr, "specified user doesn't exist\n");
+ warnln("specified user doesn't exist");
rc = 6;
}
@@ -127,7 +127,7 @@ int main(int argc, char** argv)
String real_path = Core::File::real_path_for(home_directory);
if (real_path == "/") {
- fprintf(stderr, "home directory is /, not deleted!\n");
+ warnln("home directory is /, not deleted!");
return 12;
}
@@ -143,7 +143,7 @@ int main(int argc, char** argv)
return 12;
}
if (WEXITSTATUS(wstatus)) {
- fprintf(stderr, "failed to remove the home directory\n");
+ warnln("failed to remove the home directory");
return 12;
}
}