Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2007 18:10:33 +0300
From:      "Sergey Baturov" <sergey@toor.org.ru>
To:        freebsd-rc@freebsd.org
Subject:   mountcritlocal and mountlate issue
Message-ID:  <20070320151033.A9CF756@gracer.toor.org.ru>

next in thread | raw e-mail | index | archive | help
Hi, all! 

I've found a small non-critical issue in /etc/rc.d/mountcritlocal
and /etc/rc.d/mountlate scripts. The issue is the same: 

	mount -a ...
	echo '.' 

	case $? in
	0)
		;;
	*)
		... 

There is no situation when 'case' would have a value other then '0'
because 'echo' executed just before the 'case' and the last command
exit status will almost always be zero. And the user will never see
error message in '*' case. 

Is this correct? 

P.S. Please 'CC' me, I'm not a list member. 

BR,
Sergey Baturov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070320151033.A9CF756>