diff options
Diffstat (limited to 'Userland/Utilities/groupdel.cpp')
-rw-r--r-- | Userland/Utilities/groupdel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/groupdel.cpp b/Userland/Utilities/groupdel.cpp index 03ade32609..fb2261dc8d 100644 --- a/Userland/Utilities/groupdel.cpp +++ b/Userland/Utilities/groupdel.cpp @@ -20,14 +20,14 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) TRY(Core::System::unveil("/etc/", "rwc")); TRY(Core::System::unveil("/bin/rm", "x")); - char const* groupname = nullptr; + DeprecatedString groupname; Core::ArgsParser args_parser; args_parser.add_positional_argument(groupname, "Group name", "group"); args_parser.parse(arguments); setgrent(); - auto* g = getgrnam(groupname); + auto* g = getgrnam(groupname.characters()); // Check if the group exists if (!g) { |