mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-11 19:04:13 +08:00
(main): Accept -F as a synonym for -t for compatibility
with Solaris. From Peter Eriksson.
This commit is contained in:
parent
28f8f53bb6
commit
7e9e29f392
6
src/df.c
6
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;
|
||||
|
Loading…
Reference in New Issue
Block a user