From 6a27a9f64e3ec3bb99ff09e224d255e8dce0b522 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Sat, 18 Feb 2017 11:43:13 +0000 Subject: [PATCH] Make fsck(8) default to "ufs", like eg mount(8) does. Approved by: imp Discussed with: kib MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9621 --- sbin/fsck/fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/fsck/fsck.c b/sbin/fsck/fsck.c index bf1892c3210..728acee4f52 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 {