commit d8656b0189220e73d3a6cd4ebeaec5091824aef1 parent a1627b94195e83dba5b7b483d5af780e316cb73f Author: Mattias Andrée <maandree@kth.se> Date: Wed, 11 Jul 2018 20:53:17 +0200 uname: check that no operands are specified Signed-off-by: Mattias Andrée <maandree@kth.se> Diffstat:
M | uname.c | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/uname.c b/uname.c @@ -40,6 +40,9 @@ main(int argc, char *argv[]) usage(); } ARGEND + if (argc) + usage(); + if (uname(&u) < 0) eprintf("uname:");