]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix spurious error from sysrc
authordteske <dteske@FreeBSD.org>
Mon, 2 Dec 2019 05:24:16 +0000 (05:24 +0000)
committerdteske <dteske@FreeBSD.org>
Mon, 2 Dec 2019 05:24:16 +0000 (05:24 +0000)
commit9058714bd60e3a84840d2b8b3a3859979212353d
tree119b1ccd58261e2e6bfb1d39f133e26cbbec8d30
parent99a73ff4baad671afad6b00336b365fe34d62000
Fix spurious error from sysrc

When using sysrc to modify a file, the file should be created silently.
However, with the introduction of SVN r335280, an error of "No such file
or directory" would appear despite everything else working as-expected.

The nature of this spurious error is that SVN r335280 did not check if
the file exists first, before trying to fixup the line-endings in the
file just prior to modification.

PR: bin/240875
Reported by: Jose Luis Duran
MFC after: 3 days
usr.sbin/bsdconfig/share/sysrc.subr