Author: trasz
Date: Sun Mar 19 14:05:56 2017
New Revision: 315546
URL: https://svnweb.freebsd.org/changeset/base/315546

Log:
  MFC r313915:
  
  Make fsck(8) default to "ufs", like eg mount(8) does.

Modified:
  stable/11/sbin/fsck/fsck.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sbin/fsck/fsck.c
==============================================================================
--- stable/11/sbin/fsck/fsck.c  Sun Mar 19 13:46:11 2017        (r315545)
+++ stable/11/sbin/fsck/fsck.c  Sun Mar 19 14:05:56 2017        (r315546)
@@ -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 {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to