Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 24518 Details for
Bug 39632
mandrake patches restore old functionality to coreutils but dont appropriately warn users about it
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
tail.c.patch
tail.c.patch (text/plain), 1.18 KB, created by
SpanKY
on 2004-01-27 20:47:05 UTC
(
hide
)
Description:
tail.c.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2004-01-27 20:47:05 UTC
Size:
1.18 KB
patch
obsolete
>--- src/tail.c.old 2004-01-27 23:34:20.710623104 -0500 >+++ src/tail.c 2004-01-27 23:41:00.938779176 -0500 >@@ -1351,7 +1351,7 @@ > const char *p = argv[1]; > const char *n_string = NULL; > const char *n_string_end; >- bool obsolete_usage; >+ bool obsolete_usage, obsolete_usage_posixly_correct; > > int t_from_start; > int t_count_lines; >@@ -1363,7 +1363,8 @@ > if (argc < 2) > return 0; > >- obsolete_usage = (posix2_version () < 200112) || !getenv ("POSIXLY_CORRECT"); >+ obsolete_usage = (posix2_version () < 200112); >+ obsolete_usage_posixly_correct = !getenv ("POSIXLY_CORRECT"); > > /* If P starts with `+' and the POSIX version predates 1003.1-2001, > or if P starts with `-N' (where N is a digit), or `-l', then it >@@ -1485,10 +1486,11 @@ > > if (! obsolete_usage) > { >- error (0, 0, _("`%s' option is obsolete; use `%s-%c %.*s'"), >+ error (0, 0, _("`%s' option is obsolete; use `%s-%c %.*s' since this will be removed in the future"), > argv[1], t_forever ? " -f" : "", t_count_lines ? 'n' : 'c', > (int) (n_string_end - n_string), n_string); >- usage (EXIT_FAILURE); >+ if (!obsolete_usage_posixly_correct) >+ usage (EXIT_FAILURE); > } > > /* Set globals. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39632
:
24515
| 24518 |
24519
|
25637