summaryrefslogtreecommitdiffstats
path: root/sbin/reboot/reboot.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-08-21 05:48:34 +0000
committerdg <dg@FreeBSD.org>1994-08-21 05:48:34 +0000
commit2c49a7e8c78f68ab5d37e39803447ddacda434c2 (patch)
treedcd47489a244fc193eb4bd4dfa9ce1b2fde9b4d2 /sbin/reboot/reboot.c
parent743dba06ce06157ddf2a0e17aa508e3812cf4c25 (diff)
downloadFreeBSD-src-2c49a7e8c78f68ab5d37e39803447ddacda434c2.zip
FreeBSD-src-2c49a7e8c78f68ab5d37e39803447ddacda434c2.tar.gz
Install aliases "fasthalt" and "fastboot" for halt and boot respectively.
This is for "backwards compatibility". Documented these aliases in the manual page.
Diffstat (limited to 'sbin/reboot/reboot.c')
-rw-r--r--sbin/reboot/reboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
index df5515a..6d0fee4 100644
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -66,7 +66,7 @@ main(argc, argv)
int ch, howto, lflag, nflag, qflag, sverrno;
char *p, *user;
- if (!strcmp((p = rindex(*argv, '/')) ? p + 1 : *argv, "halt")) {
+ if (strstr((p = rindex(*argv, '/')) ? p + 1 : *argv, "halt")) {
dohalt = 1;
howto = RB_HALT;
} else
OpenPOWER on IntegriCloud