From: Martin Mares Date: Sat, 21 Apr 2012 20:50:01 +0000 (+0200) Subject: Isolate: Fix up some bugs X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b11b8290a7ad91715c1e0f108014499044af1f55;p=eval.git Isolate: Fix up some bugs --- 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\