Skip to content

Commit

Permalink
Userland: Fix segfault in chown
Browse files Browse the repository at this point in the history
chown takes 2 arguments, not 1.
  • Loading branch information
willmcpherson2 authored and awesomekling committed Feb 10, 2020
1 parent 084e67f commit c8eaae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/chown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int main(int argc, char** argv)
return 1;
}

if (argc < 2) {
if (argc < 3) {
printf("usage: chown <uid[:gid]> <path>\n");
return 0;
}
Expand Down

0 comments on commit c8eaae3

Please sign in to comment.