From: Jim Meyering Date: Sat, 30 Nov 1996 04:08:02 +0000 (+0000) Subject: (main): Accept -F as a synonym for -t for compatibility X-Git-Tag: TEXTUTILS-1_19q~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e9e29f3923ef530b172a5ca315104b83ba3d5dd;p=thirdparty%2Fcoreutils.git (main): Accept -F as a synonym for -t for compatibility with Solaris. From Peter Eriksson. --- diff --git a/src/df.c b/src/df.c index fa85c2b614..de39b709f2 100644 --- a/src/df.c +++ b/src/df.c @@ -612,7 +612,7 @@ main (int argc, char **argv) posix_format = 0; exit_status = 0; - while ((i = getopt_long (argc, argv, "aihkmPTt:vx:", long_options, NULL)) + while ((i = getopt_long (argc, argv, "aiF:hkmPTt:vx:", long_options, NULL)) != EOF) { switch (i) @@ -652,9 +652,13 @@ main (int argc, char **argv) case 130: require_sync = 0; break; + + case 'F': + /* Accept -F as a synonym for -t for compatibility with Solaris. */ case 't': add_fs_type (optarg); break; + case 'v': /* For SysV compatibility. */ /* ignore */ break;