https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240875
Bug ID: 240875 Summary: usr.sbin/sysrc: If the file to be modified does not exist, an error message is displayed Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: b...@freebsd.org Reporter: jldu...@gmail.com Created attachment 207890 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=207890&action=edit sysrc.subr patch obtained from https://github.com/freebsd/poudriere/pull/708#issuecomment-526753174 Currently, with sysrc, if the file to be modified does not exist, an error message is displayed. In this case, there is no /etc/rc.conf: root@test:~ # sysrc hostname="test.example.com" awk: can't open file /etc/rc.conf source line number 1 hostname: -> test.example.com The patch fixes this situation. This patch was created by @dteske, obtained from https://github.com/freebsd/poudriere/pull/708#issuecomment-526753174 -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"