summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb/fsdb.c
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1996-09-30 20:04:24 +0000
committerguido <guido@FreeBSD.org>1996-09-30 20:04:24 +0000
commit7706e782e683d8d989a649d386f2b5c12ccd2768 (patch)
treed6d104228a90764ad298813d96144b726ae4baa5 /sbin/fsdb/fsdb.c
parent8c9f462db0e64312a9d88a3f3a34d1168e8537d1 (diff)
downloadFreeBSD-src-7706e782e683d8d989a649d386f2b5c12ccd2768.zip
FreeBSD-src-7706e782e683d8d989a649d386f2b5c12ccd2768.tar.gz
Get rid of useless -f flag (though left for historical reasons).
Diffstat (limited to 'sbin/fsdb/fsdb.c')
-rw-r--r--sbin/fsdb/fsdb.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index aba9f1b..3993581 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -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,
OpenPOWER on IntegriCloud