uname: check that no operands are specified

Signed-off-by: Mattias Andrée <maandree@kth.se>
This commit is contained in:
Mattias Andrée 2018-07-11 20:53:17 +02:00 committed by Michael Forney
parent a1627b9419
commit d8656b0189
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ main(int argc, char *argv[])
usage();
} ARGEND
if (argc)
usage();
if (uname(&u) < 0)
eprintf("uname:");