Fix "fasthalt" to halt instead of reboot

fasthalt has behaved like reboot, instead of like halt, since r228408
(2011, 10.0-RELEASE).  Fix it.  One wonders if anyone will notice.

Approved by:	re (kib)
MFC after:	3 days
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Eric van Gyzen 2018-09-14 18:12:30 +00:00
parent d5089b3aed
commit 6760585add
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338688

View File

@ -73,7 +73,7 @@ main(int argc, char *argv[])
u_int pageins;
const char *user, *kernel = NULL;
if (strcmp(getprogname(), "halt") == 0) {
if (strstr(getprogname(), "halt") != NULL) {
dohalt = 1;
howto = RB_HALT;
} else