summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2017-03-19 14:05:56 +0000
committertrasz <trasz@FreeBSD.org>2017-03-19 14:05:56 +0000
commitf59f05e4da0ccda8a26f2382177656ba416a237c (patch)
tree391468288d0dcf29c20464a3b4cf0cc914faaf55 /sbin
parent8d2c23ed77dda33fa0f10bcb36a915765b8b2c9a (diff)
downloadFreeBSD-src-f59f05e4da0ccda8a26f2382177656ba416a237c.zip
FreeBSD-src-f59f05e4da0ccda8a26f2382177656ba416a237c.tar.gz
MFC r313915:
Make fsck(8) default to "ufs", like eg mount(8) does.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fsck/fsck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck/fsck.c b/sbin/fsck/fsck.c
index bf1892c..728acee 100644
--- a/sbin/fsck/fsck.c
+++ b/sbin/fsck/fsck.c
@@ -215,7 +215,7 @@ main(int argc, char *argv[])
if (vfstype == NULL)
vfstype = getfstype(spec);
if (vfstype == NULL)
- errx(1, "Could not determine filesystem type");
+ vfstype = "ufs";
type = vfstype;
devcheck(spec);
} else {
OpenPOWER on IntegriCloud