summaryrefslogtreecommitdiff
path: root/srcx
diff options
context:
space:
mode:
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;