mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
Userland: Fix a crash in chown(1)
This commit is contained in:
parent
153bfe5683
commit
6fcce077bb
Notes:
sideshowbarker
2024-07-19 05:36:22 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/6fcce077bb8 Pull-request: https://github.com/SerenityOS/serenity/pull/2564 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ int main(int argc, char** argv)
|
|||
new_gid = number.value();
|
||||
} else {
|
||||
auto* group = getgrnam(parts[1].characters());
|
||||
if (!new_gid) {
|
||||
if (!group) {
|
||||
fprintf(stderr, "Unknown group '%s'\n", parts[1].characters());
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue