diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tail.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c index 8783bfdd1..a9d532d83 100644 --- a/src/tail.c +++ b/src/tail.c @@ -876,7 +876,9 @@ parse_obsolescent_option (int argc, const char *const *argv, if (argc < 2) return 0; - if ( ! (p[0] == '+' || (p[0] == '-' && ISDIGIT (p[1]))) ) + /* If P starts with `+', `-N' (where N is a digit), or `-l', + then it is obsolescent. Return zero otherwise. */ + if ( ! (p[0] == '+' || (p[0] == '-' && (p[1] == 'l' || ISDIGIT (p[1])))) ) return 0; if (*p == '+') |