Signed-off-by: Dwight Engen <dwight.en...@oracle.com>
---
 src/lxc/conf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index ecbcf41..457fa26 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -800,10 +800,11 @@ static int lxc_mount_auto_mounts(struct lxc_conf *conf, 
int flags, struct cgroup
                        }
                        r = mount(source, destination, 
default_mounts[i].fstype, default_mounts[i].flags, default_mounts[i].options);
                        saved_errno = errno;
+                       if (r < 0)
+                               SYSERROR("error mounting %s on %s", source, 
destination);
                        free(source);
                        free(destination);
                        if (r < 0) {
-                               SYSERROR("error mounting %s", 
default_mounts[i].destination);
                                errno = saved_errno;
                                return -1;
                        }
-- 
1.8.3.1


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to