Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d Treat empty or missing fs_passno field like it has ...



details:   https://anonhg.NetBSD.org/src/rev/fdca45704716
branches:  trunk
changeset: 757829:fdca45704716
user:      bad <bad%NetBSD.org@localhost>
date:      Sat Sep 25 15:10:14 2010 +0000

description:
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.

diffstat:

 etc/rc.d/fsck_root |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r cac03c977768 -r fdca45704716 etc/rc.d/fsck_root
--- a/etc/rc.d/fsck_root        Sat Sep 25 14:30:34 2010 +0000
+++ b/etc/rc.d/fsck_root        Sat Sep 25 15:10:14 2010 +0000
@@ -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
                        ;;



Home | Main Index | Thread Index | Old Index