Module Name: src Committed By: christos Date: Mon Jul 6 16:07:19 UTC 2009
Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Fix bug introduced in revision 1.174 where a NULL fspec with an MNT_UPDATE command would always return EINVAL. This broke fsck on root, where fsck'ing a dirty root would always return an error causing rc to resort in a reboot. To generate a diff of this commit: cvs rdiff -u -r1.247 -r1.248 src/sys/ufs/ffs/ffs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/ffs/ffs_vfsops.c diff -u src/sys/ufs/ffs/ffs_vfsops.c:1.247 src/sys/ufs/ffs/ffs_vfsops.c:1.248 --- src/sys/ufs/ffs/ffs_vfsops.c:1.247 Mon Jun 29 01:08:18 2009 +++ src/sys/ufs/ffs/ffs_vfsops.c Mon Jul 6 12:07:18 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_vfsops.c,v 1.247 2009/06/29 05:08:18 dholland Exp $ */ +/* $NetBSD: ffs_vfsops.c,v 1.248 2009/07/06 16:07:18 christos Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.247 2009/06/29 05:08:18 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.248 2009/07/06 16:07:18 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_ffs.h" @@ -520,7 +520,7 @@ #endif /* WAPBL */ if (args->fspec == NULL) - return EINVAL; + return 0; } error = set_statvfs_info(path, UIO_USERSPACE, args->fspec,