diff options
author | guido <guido@FreeBSD.org> | 1996-09-30 20:04:24 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 1996-09-30 20:04:24 +0000 |
commit | 7706e782e683d8d989a649d386f2b5c12ccd2768 (patch) | |
tree | d6d104228a90764ad298813d96144b726ae4baa5 /sbin/fsdb/fsdb.c | |
parent | 8c9f462db0e64312a9d88a3f3a34d1168e8537d1 (diff) | |
download | FreeBSD-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.c | 11 |
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, |