Get rid of useless -f flag (though left for historical reasons).

This commit is contained in:
Guido van Rooij 1996-09-30 20:04:24 +00:00
parent 7b5698c217
commit fe3a5bd458
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18585
2 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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,