Module Name:    src
Committed By:   bad
Date:           Sat Sep 25 15:10:14 UTC 2010

Modified Files:
        src/etc/rc.d: fsck_root

Log Message:
Treat empty or missing fs_passno field like it has a value of 0 as fstab(5)
specifies.
Related to PR misc/43905 but does not fix the underlying issues.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/etc/rc.d/fsck_root

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/rc.d/fsck_root
diff -u src/etc/rc.d/fsck_root:1.4 src/etc/rc.d/fsck_root:1.5
--- src/etc/rc.d/fsck_root:1.4	Tue Feb 16 02:46:02 2010
+++ src/etc/rc.d/fsck_root	Sat Sep 25 15:10:14 2010
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: fsck_root,v 1.4 2010/02/16 02:46:02 mrg Exp $
+# $NetBSD: fsck_root,v 1.5 2010/09/25 15:10:14 bad Exp $
 #
 
 # PROVIDE: fsck_root
@@ -24,7 +24,7 @@
 	# Do nothing if root file system has fs_passno=0 in /etc/fstab.
 	while read fs_spec fs_file fs_vfstype fs_mntops fs_freq fs_passno
 	do
-		case "${fs_spec}:${fs_file}:${fs_passno}" in
+		case "${fs_spec}:${fs_file}:${fs_passno:=0}" in
 		\#*|'':*)
 			continue # skip comment or blank line
 			;;

Reply via email to