From da8619479b79290d28b2f83f045c54ba04d7663d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 19 May 2004 18:03:09 +0000 Subject: jkill option fixes --- srcx/jkill.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcx/jkill.c b/srcx/jkill.c index 4073f09..236a2f4 100644 --- a/srcx/jkill.c +++ b/srcx/jkill.c @@ -194,7 +194,7 @@ static void parse_jail_opts(int argc, char* argv[]) t = strchr(argv[0], '/'); t = t ? t + 1 : argv[0]; - if(strcmp(argv[0], "halt")) + if(strcmp(t, "halt") == 0) { g_verbose = 1; g_force = 1; @@ -202,7 +202,7 @@ static void parse_jail_opts(int argc, char* argv[]) g_restart = 0; } - else if(strcmp(argv[0], "reboot")) + else if(strcmp(t, "reboot") == 0) { g_verbose = 1; g_force = 1; -- cgit v1.2.3