]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use 'mv -f' in rc.d/ntpd to avoid spuriously halting the boot.
authorIan Lepore <ian@FreeBSD.org>
Sat, 23 Jun 2018 02:42:08 +0000 (02:42 +0000)
committerIan Lepore <ian@FreeBSD.org>
Sat, 23 Jun 2018 02:42:08 +0000 (02:42 +0000)
commit6014f3c4463471df27ff61fbd9221d9c1dd4e384
treeb00414170b66d75651b9377ee4bfa42b58cba8b9
parentab42fbe2e9891b8bad08ccf9fc354c5b5e01c55c
Use 'mv -f' in rc.d/ntpd to avoid spuriously halting the boot.

The final 'mv' to install a fetched leap-list file can fail (due to a
readonly fs, or schg flags, for example), and that leads to mv(1)
prompting the user, stopping the boot process.  Instead, use mv -f
to supress the prompting, and if verbose mode is on, emit a warning
that the existing file cannot be replaced.

PR: 219255
etc/rc.d/ntpd