Unverified Commit 772900e7 by Christian Brauner Committed by GitHub

Merge pull request #3124 from qianfan-Zhao/lxc-create-abs-path

lxc-create: check absoule path for param '--dir'
parents faec88e5 14aab2c7
......@@ -235,6 +235,11 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
if (my_args.dir && my_args.dir[0] != '/') {
ERROR("--dir should use absolute path");
exit(EXIT_FAILURE);
}
if (strncmp(my_args.template, "none", strlen(my_args.template)) == 0)
my_args.template = NULL;
......
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