The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/7198

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 8447da505e42763c1fb56e2ab905aa8146b29030 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Wed, 15 Apr 2020 14:28:39 -0400
Subject: [PATCH] shared/util: Never look into the snap
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 shared/util.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/shared/util.go b/shared/util.go
index 4813aa62f4..3a7c55cfd5 100644
--- a/shared/util.go
+++ b/shared/util.go
@@ -143,6 +143,7 @@ func HostPathFollow(path string) string {
        }
 
        // Rely on "readlink -m" to do the right thing.
+       path = HostPath(path)
        for {
                target, err := RunCommand("readlink", "-m", path)
                if err != nil {
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to