HardenedBSD/sbin/reboot
Mark Johnston 87e63f2e7f nextboot: Write nextboot.conf safely
As in the old nextboot.sh script:
- First write everything to a tempfile instead of /boot/nextboot.conf.
- fsync() the tempfile before renaming it to nextboot.conf.

Fixes:	fd6d47375a ("rescue,nextboot: Install nextboot as a link to reboot, rm nextboot.sh")
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D44572
2024-04-03 11:31:43 -04:00
..
boot_i386.8
Makefile
Makefile.depend
nextboot.8
reboot.8
reboot.c nextboot: Write nextboot.conf safely 2024-04-03 11:31:43 -04:00