uname: check that no operands are specified

Signed-off-by: Mattias Andrée <maandree@kth.se>
master
Mattias Andrée 5 years ago committed by Michael Forney
parent a1627b9419
commit d8656b0189

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

Loading…
Cancel
Save