Magellan Linux

Annotation of /trunk/coreutils/patches-5.3.0/coreutils-5.3.0-warning-head.c.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 44 - (hide annotations) (download)
Thu Oct 13 21:17:16 2005 UTC (18 years, 8 months ago) by niro
File size: 869 byte(s)
patch set for coretutils-5.3.0

1 niro 44 diff -urN noacl-patched/src/head.c 1/src/head.c
2     --- noacl-patched/src/head.c 2005-03-25 23:51:05.000000000 +0000
3     +++ 1/src/head.c 2005-03-30 14:04:37.000000000 +0000
4     @@ -995,15 +995,16 @@
5     }
6     }
7    
8     - if (200112 <= posix2_version () && getenv ("POSIXLY_CORRECT"))
9     + if (200112 <= posix2_version ())
10     {
11     int n_string_prefix_len = end_n_string - n_string;
12     - error (0, 0, _("`-%s' option is obsolete; use `-%c %.*s%.*s%s'"),
13     + error (0, 0, _("`-%s' option is obsolete; use `-%c %.*s%.*s%s' since this will be removed in the future"),
14     n_string, count_lines ? 'n' : 'c',
15     n_string_prefix_len, n_string,
16     multiplier_char != 0, &multiplier_char,
17     header_mode_option[header_mode]);
18     - usage (EXIT_FAILURE);
19     + if (getenv("POSIXLY_CORRECT"))
20     + usage (EXIT_FAILURE);
21     }
22    
23     /* Append the multiplier character (if any) onto the end of