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

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 27ccdda645df9b60a1ac4b6485a08311b99c0190 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <[email protected]>
Date: Fri, 20 Oct 2017 17:50:43 -0400
Subject: [PATCH] Fix file transfers to/from stdin/stdout in snap
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 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/shared/util.go b/shared/util.go
index d0be6eff5..ac32d967c 100644
--- a/shared/util.go
+++ b/shared/util.go
@@ -109,6 +109,11 @@ func HostPath(path string) string {
                return path
        }
 
+       // Don't prefix stdin/stdout
+       if path == "-" {
+               return path
+       }
+
        // Check if we're running in a snap package
        snap := os.Getenv("SNAP")
        if snap == "" {
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to