summaryrefslogtreecommitdiff
path: root/coreutils/tail.c
diff options
context:
space:
mode:
authorGlenn L McGrath2005-12-11 03:09:05 +0000
committerGlenn L McGrath2005-12-11 03:09:05 +0000
commit0bd0257fe0fb3835af056ec933b010aad2722f93 (patch)
treec6410295b7270b93ffab84419419b9b05586e370 /coreutils/tail.c
parentd77b781c1f0f0913b252c8f207f5518e77733dc3 (diff)
downloadbusybox-0bd0257fe0fb3835af056ec933b010aad2722f93.zip
busybox-0bd0257fe0fb3835af056ec933b010aad2722f93.tar.gz
Add build options to control SuS compatability, allows numeric
option handling to be disabled. Defaults to enabled, so no changes in default behaviour
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r--coreutils/tail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c
index 1db1e2b..cc1517a 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -121,6 +121,7 @@ int tail_main(int argc, char **argv)
char *s, *buf;
const char *fmt;
+#ifdef CONFIG_FEATURE_SUSv2
/* Allow legacy syntax of an initial numeric option without -n. */
if (argc >=2 && ((argv[1][0] == '+') || ((argv[1][0] == '-')
/* && (isdigit)(argv[1][1]) */
@@ -130,6 +131,7 @@ int tail_main(int argc, char **argv)
optarg = argv[1];
goto GET_COUNT;
}
+#endif
while ((opt = getopt(argc, argv, tail_opts)) > 0) {
switch (opt) {