mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 21:18:59 +00:00
Get rid of useless -f flag (though left for historical reasons).
This commit is contained in:
parent
7b5698c217
commit
fe3a5bd458
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18585
@ -35,7 +35,8 @@
|
|||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl d
|
.Op Fl d
|
||||||
.Fl f Ar fsname
|
.Op Fl f
|
||||||
|
.Ar fsname
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
.Nm
|
.Nm
|
||||||
opens
|
opens
|
||||||
@ -59,6 +60,10 @@ The
|
|||||||
option enables additional debugging output (which comes primarily from
|
option enables additional debugging output (which comes primarily from
|
||||||
.Xr fsck 8 -derived
|
.Xr fsck 8 -derived
|
||||||
code).
|
code).
|
||||||
|
.Pp
|
||||||
|
The
|
||||||
|
.Fl f
|
||||||
|
option is left for historical reasons and has no meaning.
|
||||||
.Sh COMMANDS
|
.Sh COMMANDS
|
||||||
Besides the built-in
|
Besides the built-in
|
||||||
.Xr libedit 3
|
.Xr libedit 3
|
||||||
|
@ -95,8 +95,15 @@ main(argc, argv)
|
|||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fsys == NULL)
|
argc -= optind;
|
||||||
|
argv += optind;
|
||||||
|
if (fsys == NULL) {
|
||||||
|
if (argc != 1)
|
||||||
usage();
|
usage();
|
||||||
|
else
|
||||||
|
fsys = argv[0];
|
||||||
|
}
|
||||||
|
|
||||||
if (!setup(fsys))
|
if (!setup(fsys))
|
||||||
errx(1, "cannot set up file system `%s'", fsys);
|
errx(1, "cannot set up file system `%s'", fsys);
|
||||||
printf("Editing file system `%s'\nLast Mounted on %s\n", fsys,
|
printf("Editing file system `%s'\nLast Mounted on %s\n", fsys,
|
||||||
|
Loading…
Reference in New Issue
Block a user