Userland: Fix segfault in chown

chown takes 2 arguments, not 1.
This commit is contained in:
William McPherson 2020-02-10 20:53:52 +11:00 committed by Andreas Kling
parent 084e67f267
commit c8eaae3eaf
Notes: sideshowbarker 2024-07-19 09:29:23 +09:00

View file

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