From b11b8290a7ad91715c1e0f108014499044af1f55 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 21 Apr 2012 22:50:01 +0200 Subject: [PATCH] Isolate: Fix up some bugs --- isolate/isolate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/isolate/isolate.c b/isolate/isolate.c index 73f545e..20d9f9f 100644 --- a/isolate/isolate.c +++ b/isolate/isolate.c @@ -506,7 +506,8 @@ static void init_dir_rules(void) static void make_dir(char *path) { - char *sep = path; + char *sep = (path[0] == '/' ? path+1 : path); + for (;;) { sep = strchr(sep, '/'); @@ -1147,7 +1148,7 @@ usage(void) Usage: isolate [] \n\ \n\ Options:\n\ --b, --box-id=\t\tWhen multiple sandboxes are used in parallel, each must get a unique ID\n\ +-b, --box-id=\tWhen multiple sandboxes are used in parallel, each must get a unique ID\n\ -c, --cg[=]\tPut process in a control group (optionally a sub-group of )\n\ --cg-mem=\tLimit memory usage of the control group to KB\n\ --cg-timing\t\tTime limits affects total run time of the control group\n\ -- 2.39.2