Blame SOURCES/0060-v2v-fix-path-to-source-when-copying-files-from-guest.patch

da373f
From 66cd34e84e41d3f70e95fa745637ba6eb4779aec Mon Sep 17 00:00:00 2001
3efd08
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= <tgolembi@redhat.com>
3efd08
Date: Fri, 8 Feb 2019 11:44:41 +0100
3efd08
Subject: [PATCH] v2v: fix path to source when copying files from guest tools
3efd08
 directory
3efd08
MIME-Version: 1.0
3efd08
Content-Type: text/plain; charset=UTF-8
3efd08
Content-Transfer-Encoding: 8bit
3efd08
3efd08
The debug message was slightly changed too to better match the similar
3efd08
message for ISO case. It refers to the root directory instead of the
3efd08
specific subdirectory inside guest tools.
3efd08
3efd08
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
3efd08
(cherry picked from commit f4bda5571a36da42bdc800c10f2c85cf20bf5c85)
3efd08
---
3efd08
 v2v/windows_virtio.ml | 7 ++++---
3efd08
 1 file changed, 4 insertions(+), 3 deletions(-)
3efd08
3efd08
diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml
3efd08
index 7be63a316..70f0bf09d 100644
3efd08
--- a/v2v/windows_virtio.ml
3efd08
+++ b/v2v/windows_virtio.ml
3efd08
@@ -309,10 +309,11 @@ and copy_drivers g inspect driverdir =
3efd08
 and copy_from_virtio_win g inspect srcdir destdir filter missing =
3efd08
   let ret = ref [] in
3efd08
   if is_directory virtio_win then (
3efd08
+    debug "windows: copy_from_virtio_win: guest tools source directory %s"
3efd08
+      virtio_win;
da373f
+
da373f
     let dir = virtio_win // srcdir in
da373f
-    debug "windows: copy_from_virtio_win: guest tools source directory %s" dir;
da373f
-
3efd08
-    if not (is_directory srcdir) then missing ()
3efd08
+    if not (is_directory dir) then missing ()
3efd08
     else (
3efd08
       let cmd = sprintf "cd %s && find -L -type f" (quote dir) in
3efd08
       let paths = external_command cmd in
3efd08
-- 
da373f
2.18.4
3efd08