without this correction, unable to create
a container with a configuration file.
This is a side effect of commit 488624016575d092d56211347b2bbe8367cd339a

Signed-off-by: Michel Normand <michel.mno@free.fr>
---
 src/lxc/start.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lxc/start.c b/src/lxc/start.c
index e190406..abec1b4 100644
--- a/src/lxc/start.c
+++ b/src/lxc/start.c
@@ -230,7 +230,6 @@ static int console_init(char *console, size_t size)
 struct lxc_handler *lxc_init(const char *name, const char *rcfile)
 {
 	struct lxc_handler *handler;
-	char path[MAXPATHLEN];
 
 	handler = malloc(sizeof(*handler));
 	if (!handler)
@@ -249,11 +248,11 @@ struct lxc_handler *lxc_init(const char *name, const char *rcfile)
 		goto out_aborting;
 	}
 
-	if (rcfile && access(path, F_OK)) {
+	if (rcfile && access(rcfile, F_OK)) {
 		ERROR("failed to access rcfile");
 		goto out_aborting;
 
-		if (lxc_config_read(path, &handler->conf)) {
+		if (lxc_config_read(rcfile, &handler->conf)) {
 			ERROR("failed to read the configuration file");
 			goto out_aborting;
 		}
-- 
1.6.3.3

-- 


