svn commit: r313915 - head/sbin/fsck
Edward Tomasz Napierala
trasz at FreeBSD.org
Sat Feb 18 11:43:15 UTC 2017
Author: trasz
Date: Sat Feb 18 11:43:13 2017
New Revision: 313915
URL: https://svnweb.freebsd.org/changeset/base/313915
Log:
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
Modified:
head/sbin/fsck/fsck.c
Modified: head/sbin/fsck/fsck.c
==============================================================================
--- head/sbin/fsck/fsck.c Sat Feb 18 10:01:17 2017 (r313914)
+++ head/sbin/fsck/fsck.c Sat Feb 18 11:43:13 2017 (r313915)
@@ -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 {
More information about the svn-src-all
mailing list