summaryrefslogtreecommitdiff
path: root/src/stat.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-06-22 11:41:22 +0200
committerJim Meyering <meyering@redhat.com>2010-06-22 11:42:34 +0200
commit13f323786c0317347b448ae365fec95856dc0b8d (patch)
tree7efa5db6d142d8008f47148405ab621e51f9ffae /src/stat.c
parent1419af82433027b03c2d49f7a401beb485bcbe2a (diff)
downloadcoreutils-13f323786c0317347b448ae365fec95856dc0b8d.tar.xz
stat: remove support for deprecated --context (-Z) option
* src/stat.c (main): Remove support for the --context (-Z) option. In upstream releases this option has always been a no-op. It was first ignored for compatibility, and since the June 2008 commit, 574f7614 (coreutils-7.0), its use has evoked a warning. * NEWS (Changes in behavior): Mention it.
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/stat.c b/src/stat.c
index 39d30777e..f1b5ef110 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -1071,7 +1071,7 @@ main (int argc, char *argv[])
atexit (close_stdout);
- while ((c = getopt_long (argc, argv, "c:fLtZ", long_options, NULL)) != -1)
+ while ((c = getopt_long (argc, argv, "c:fLt", long_options, NULL)) != -1)
{
switch (c)
{
@@ -1099,15 +1099,6 @@ main (int argc, char *argv[])
terse = true;
break;
- case 'Z': /* FIXME: remove in 2010 */
- /* Ignore, for compatibility with distributions
- that implemented this before upstream.
- But warn of impending removal. */
- error (0, 0,
- _("the --context (-Z) option is obsolete and will be removed\n"
- "in a future release"));
- break;
-
case_GETOPT_HELP_CHAR;
case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);