summaryrefslogtreecommitdiff
path: root/srcx
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-05-19 18:03:09 +0000
committerStef Walter <stef@memberwebs.com>2004-05-19 18:03:09 +0000
commitda8619479b79290d28b2f83f045c54ba04d7663d (patch)
tree9732289fa0c8d36f6b17332cd719868dc1176d55 /srcx
parent908e79b1b4e24faa39933a774a0f05333b7caa46 (diff)
jkill option fixes
Diffstat (limited to 'srcx')
-rw-r--r--srcx/jkill.c4
1 files 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;