[Bug 280941] The reboot command considered harmful
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 280941] The reboot command considered harmful"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Jan 2025 14:29:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280941 --- Comment #14 from Daniel Tameling <tamelingdaniel@gmail.com> --- Created attachment 257061 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=257061&action=edit make reboot and halt aliases for shutdown -r now and shutdown -h now I created a patch to show how a change could potentially look if there is ever consensus to move ahead. I only tested it lightly. A few notes: - I kept the names of the _PATH_REBOOT and _PATH_HALT in include/paths.h despite them referring to fastboot and fasthalt as I wasn't sure who else was using them - I renamed reboot.{c,8} to fastboot.{c,8} but left the directory as reboot - I wasn't sure what to do with the history section of the fastboot.8 file. It still talks about the history of reboot - Since they are now derived from shutdown, the permissions and group ownership of reboot and halt change. It was -r-xr-xr-x root wheel and is now -r-sr-xr-- root operator -- You are receiving this mail because: You are the assignee for the bug.