diff options
Diffstat (limited to 'sbin/reboot/reboot.c')
-rw-r--r-- | sbin/reboot/reboot.c | 2 |
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 |