aboutsummaryrefslogtreecommitdiff
path: root/tail.c
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-01 19:10:52 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-01 19:10:52 +0000
commit94f5e0ba7ca7af260f4bf2d8c77b8e6f6f528b18 (patch)
tree7f40ce6f49ca9ce727653928d1b9f655afb5cb66 /tail.c
parent28c49b6c9c98dc592759063d10c49b209e849cae (diff)
downloadbusybox-94f5e0ba7ca7af260f4bf2d8c77b8e6f6f528b18.tar.gz
Some accrued fixes/updates.
* cp/mv now accepts (and ignores) the -f flag, since it always does force anyway * tail can now accept -<num> commands (e.g. -10) for better compatibility with the standard tail command * added a simple id implementation; doesn't support supp. groups yet
Diffstat (limited to 'tail.c')
-rw-r--r--tail.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tail.c b/tail.c
index 315eee188..321c5c4b2 100644
--- a/tail.c
+++ b/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;