]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: do not run the "mount" hooks twice 2217/head
authorFelix Abecassis <fabecassis@nvidia.com>
Wed, 14 Mar 2018 23:20:18 +0000 (16:20 -0700)
committerFelix Abecassis <fabecassis@nvidia.com>
Wed, 14 Mar 2018 23:20:18 +0000 (16:20 -0700)
Regression introduced by 8353b4c90ed18e570521134f2c60bef56a082b55

Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
src/lxc/conf.c

index 0d399a73b83f6f77067a784530e79c46bc33ed37..cd99124f970ae82f9cc74984df12518733994947 100644 (file)
@@ -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;
        }