1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

userdel: Replace fprintf(stderr) with warnln()

This commit is contained in:
Linus Groh 2021-05-30 14:05:34 +01:00
parent 65528d86d5
commit 7b79758fc6

View file

@ -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;
}
}