Commit 040f1c40 by Stéphane Graber

Always try to create lxcpath

parent b0227444
...@@ -206,6 +206,9 @@ int main(int argc, char *argv[]) ...@@ -206,6 +206,9 @@ int main(int argc, char *argv[])
exit(1); exit(1);
if (geteuid()) { if (geteuid()) {
if (mkdir_p(my_args.lxcpath[0], 0755)) {
exit(1);
}
if (access(my_args.lxcpath[0], O_RDWR) < 0) { if (access(my_args.lxcpath[0], O_RDWR) < 0) {
fprintf(stderr, "You lack access to %s\n", my_args.lxcpath[0]); fprintf(stderr, "You lack access to %s\n", my_args.lxcpath[0]);
exit(1); exit(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment