From 94f5e0ba7ca7af260f4bf2d8c77b8e6f6f528b18 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Mon, 1 May 2000 19:10:52 +0000 Subject: Some accrued fixes/updates. * cp/mv now accepts (and ignores) the -f flag, since it always does force anyway * tail can now accept - commands (e.g. -10) for better compatibility with the standard tail command * added a simple id implementation; doesn't support supp. groups yet --- coreutils/tail.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'coreutils/tail.c') diff --git a/coreutils/tail.c b/coreutils/tail.c index 315eee1..321c5c4 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c @@ -368,8 +368,10 @@ extern int tail_main(int argc, char **argv) case 'h': usage(tail_usage); default: - fprintf(stderr, "tail: invalid option -- %c\n", opt); - usage(tail_usage); + if ((n_units = atoi(&argv[i][1])) < 1) { + fprintf(stderr, "tail: invalid option -- %c\n", opt); + usage(tail_usage); + } } } else { break; -- cgit v1.1