mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 21:43:34 +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
|
||||
.Nm
|
||||
.Op Fl d
|
||||
.Fl f Ar fsname
|
||||
.Op Fl f
|
||||
.Ar fsname
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
opens
|
||||
@ -59,6 +60,10 @@ The
|
||||
option enables additional debugging output (which comes primarily from
|
||||
.Xr fsck 8 -derived
|
||||
code).
|
||||
.Pp
|
||||
The
|
||||
.Fl f
|
||||
option is left for historical reasons and has no meaning.
|
||||
.Sh COMMANDS
|
||||
Besides the built-in
|
||||
.Xr libedit 3
|
||||
|
@ -95,8 +95,15 @@ main(argc, argv)
|
||||
usage();
|
||||
}
|
||||
}
|
||||
if (fsys == NULL)
|
||||
usage();
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
if (fsys == NULL) {
|
||||
if (argc != 1)
|
||||
usage();
|
||||
else
|
||||
fsys = argv[0];
|
||||
}
|
||||
|
||||
if (!setup(fsys))
|
||||
errx(1, "cannot set up file system `%s'", fsys);
|
||||
printf("Editing file system `%s'\nLast Mounted on %s\n", fsys,
|
||||
|
Loading…
Reference in New Issue
Block a user