Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Feb 2017 11:43:13 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313915 - head/sbin/fsck
Message-ID:  <201702181143.v1IBhDvw075093@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702181143.v1IBhDvw075093>