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

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 <[email protected]>
From af68223f3ef82576d783795db5010d9739b02e8e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <[email protected]>
Date: Tue, 22 Aug 2017 16:38:26 -0400
Subject: [PATCH] Fix bad check for snap paths
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <[email protected]>
---
 shared/util.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shared/util.go b/shared/util.go
index d2e2526ca..e49e8d058 100644
--- a/shared/util.go
+++ b/shared/util.go
@@ -105,7 +105,7 @@ func IsUnixSocket(path string) bool {
 // When inside of a snap environment, returns the real path
 func HostPath(path string) string {
        // Ignore relative paths
-       if len(path) == 0 || path[1] != os.PathSeparator {
+       if len(path) == 0 || path[0] != os.PathSeparator {
                return path
        }
 
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to