From 1a2cf89d9976e11c089a7672de5adf89148742f5 Mon Sep 17 00:00:00 2001 From: Felix Abecassis Date: Wed, 14 Mar 2018 16:20:18 -0700 Subject: [PATCH] conf: do not run the "mount" hooks twice Regression introduced by 8353b4c90ed18e570521134f2c60bef56a082b55 Signed-off-by: Felix Abecassis --- src/lxc/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 0d399a73b..cd99124f9 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -3368,7 +3368,7 @@ int lxc_setup(struct lxc_handler *handler) } ret = run_lxc_hooks(name, "mount", lxc_conf, NULL); - if (run_lxc_hooks(name, "mount", lxc_conf, NULL)) { + if (ret < 0) { ERROR("Failed to run mount hooks"); return -1; }