Blame SOURCES/0038-v2v-o-rhv-Quote-parameter-to-rm-rf.patch

90a56e
From 0828c8f3f4fceaba6fab17d2dfaf689702265c85 Mon Sep 17 00:00:00 2001
90a56e
From: "Richard W.M. Jones" <rjones@redhat.com>
90a56e
Date: Thu, 13 Apr 2017 09:57:37 +0100
90a56e
Subject: [PATCH] v2v: -o rhv: Quote parameter to rm -rf.
90a56e
90a56e
This was safe before, the change just prevents accidental errors.
90a56e
90a56e
(cherry picked from commit 24a6c5b57c25e0e59697831b55000d6f8e21fd38)
90a56e
---
90a56e
 v2v/output_rhv.ml | 2 +-
90a56e
 1 file changed, 1 insertion(+), 1 deletion(-)
90a56e
90a56e
diff --git a/v2v/output_rhv.ml b/v2v/output_rhv.ml
46ce2f
index f407b4eda..02bd31269 100644
90a56e
--- a/v2v/output_rhv.ml
90a56e
+++ b/v2v/output_rhv.ml
90a56e
@@ -205,7 +205,7 @@ object
90a56e
         List.iter (
90a56e
           fun image_uuid ->
90a56e
             let d = images_dir // image_uuid in
90a56e
-            let cmd = sprintf "rm -rf %s" d in
90a56e
+            let cmd = sprintf "rm -rf %s" (quote d) in
90a56e
             Changeuid.command changeuid_t cmd
90a56e
         ) image_uuids
90a56e
       )
90a56e
-- 
46ce2f
2.13.4
90a56e