From 0589d477603d702885c461fb531439e6fa2c3116 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Sun, 10 Aug 2008 12:41:53 +0000 Subject: added compatibility patch making reiserfsck ignore -v flag svn path=/nixpkgs/trunk/; revision=12571 --- .../verbose-flag-ignore-for-compatibility.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/os-specific/linux/reiserfsprogs/verbose-flag-ignore-for-compatibility.patch (limited to 'pkgs/os-specific/linux/reiserfsprogs/verbose-flag-ignore-for-compatibility.patch') diff --git a/pkgs/os-specific/linux/reiserfsprogs/verbose-flag-ignore-for-compatibility.patch b/pkgs/os-specific/linux/reiserfsprogs/verbose-flag-ignore-for-compatibility.patch new file mode 100644 index 000000000000..802971b73fdc --- /dev/null +++ b/pkgs/os-specific/linux/reiserfsprogs/verbose-flag-ignore-for-compatibility.patch @@ -0,0 +1,32 @@ +diff --git a/fsck/main.c b/fsck/main.c +index ab3342a..79a0473 100644 +--- a/fsck/main.c ++++ b/fsck/main.c +@@ -37,6 +37,7 @@ fsck_progress ("Usage: %s [mode] [options] " \ + " -z | --adjust-size\t\tfix file sizes to real size\n" \ + " -q | --quiet\t\t\tno speed info\n" \ + " -y | --yes\t\t\tno confirmations\n" \ ++" -v \t\t ignore -v option for compatibility to fsck.* tools\n" \ + " -V\t\t\t\tprints version and exits\n" \ + " -a and -p\t\t\tsome light-weight auto checks for bootup\n" \ + " -f and -r\t\t\tignored\n" \ +@@ -131,7 +132,7 @@ static char * parse_options (struct fsck_data * data, int argc, char * argv []) + }; + int option_index; + +- c = getopt_long (argc, argv, "iql:nb:Szd:R:h:j:gafVrpyt:B:", ++ c = getopt_long (argc, argv, "iql:nb:Szd:R:h:j:gafVrpyvt:B:", + options, &option_index); + if (c == -1) + break; +@@ -158,6 +159,10 @@ static char * parse_options (struct fsck_data * data, int argc, char * argv []) + data->options |= OPT_YES; + break; + ++ case 'v': /* --quiet */ ++ reiserfs_warning(stdout, "\nignoring -v option for compatibility\n"); ++ break; ++ + case 'l': /* --logfile */ + data->log_file_name = optarg; + /*asprintf (&data->log_file_name, "%s", optarg);*/ -- cgit 1.4.1