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

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) ===
Closes #3446
From 42859345b99e3c4337837032a451fddcd2803c6e Mon Sep 17 00:00:00 2001
From: Alberto Donato <[email protected]>
Date: Tue, 27 Jun 2017 11:50:52 +0200
Subject: [PATCH] Clean source path for recursive push

Signed-off-by: Alberto Donato <[email protected]>
---
 lxc/file.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lxc/file.go b/lxc/file.go
index 28fdeaeeb..fbe09a9ee 100644
--- a/lxc/file.go
+++ b/lxc/file.go
@@ -115,6 +115,7 @@ func (c *fileCmd) recursivePullFile(d lxd.ContainerServer, 
container string, p s
 }
 
 func (c *fileCmd) recursivePushFile(d lxd.ContainerServer, container string, 
source string, target string) error {
+       source = filepath.Clean(source)
        sourceDir, _ := filepath.Split(source)
        sourceLen := len(sourceDir)
 
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to