[lxc-devel] [lxd/master] lxc/manpage: Fix behavior in snap

stgraber on Github lxc-bot at linuxcontainers.org
Thu Aug 13 21:53:53 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200813/c8c26953/attachment.bin>
-------------- next part --------------
From 5c1f5b5355c30c571ce767ebce4fc216416a0ac9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 13 Aug 2020 17:53:12 -0400
Subject: [PATCH] lxc/manpage: Fix behavior in snap
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: St├ęphane Graber <stgraber at ubuntu.com>
---
 lxc/manpage.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lxc/manpage.go b/lxc/manpage.go
index 8640d2a0a6..1b309fd2e8 100644
--- a/lxc/manpage.go
+++ b/lxc/manpage.go
@@ -4,6 +4,7 @@ import (
 	"github.com/spf13/cobra"
 	"github.com/spf13/cobra/doc"
 
+	"github.com/lxc/lxd/shared"
 	cli "github.com/lxc/lxd/shared/cmd"
 	"github.com/lxc/lxd/shared/i18n"
 )
@@ -40,7 +41,7 @@ func (c *cmdManpage) Run(cmd *cobra.Command, args []string) error {
 
 	opts := doc.GenManTreeOptions{
 		Header:           header,
-		Path:             args[0],
+		Path:             shared.HostPath(args[0]),
 		CommandSeparator: ".",
 	}
 


More information about the lxc-devel mailing list