diff options
author | mtm <mtm@FreeBSD.org> | 2008-03-06 14:39:33 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2008-03-06 14:39:33 +0000 |
commit | a0d97bf1991748cdad000442f28fb358282beb8a (patch) | |
tree | e59e72c753d57f2cc0a9b09a2a9903f1da9c5aa6 /etc/rc.d/mountcritlocal | |
parent | 2bdd8272907126592262d3b990239afa2efc09b6 (diff) | |
download | FreeBSD-src-a0d97bf1991748cdad000442f28fb358282beb8a.zip FreeBSD-src-a0d97bf1991748cdad000442f28fb358282beb8a.tar.gz |
The check for errors from the mount command did not work as intended
because another command (echo) is executed between the mount command
and the check.
Reported by: Sergey Baturov <sergey@toor.org.ru>
MFC after: 2 weeks
Diffstat (limited to 'etc/rc.d/mountcritlocal')
-rwxr-xr-x | etc/rc.d/mountcritlocal | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc.d/mountcritlocal b/etc/rc.d/mountcritlocal index 880f075..c25d62d 100755 --- a/etc/rc.d/mountcritlocal +++ b/etc/rc.d/mountcritlocal @@ -15,6 +15,8 @@ stop_cmd=":" mountcritlocal_start() { + local err + # Set up the list of network filesystem types for which mounting # should be delayed until after network initialization. case ${extra_netfs_types} in @@ -34,9 +36,10 @@ mountcritlocal_start() done mount_excludes=${mount_excludes%,} mount -a -t ${mount_excludes} + err=$? echo '.' - case $? in + case ${err} in 0) ;; *) |