Blame 0096-dracut.sh-quote-outfile-on-error-removal.patch

Harald Hoyer bb31e7
From 2cc5e92e210d8eba1bce3068ca2be96b2427862d Mon Sep 17 00:00:00 2001
Harald Hoyer bb31e7
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer bb31e7
Date: Wed, 11 Nov 2015 11:49:34 +0100
Harald Hoyer bb31e7
Subject: [PATCH] dracut.sh: quote $outfile on error removal
Harald Hoyer bb31e7
Harald Hoyer bb31e7
---
Harald Hoyer bb31e7
 dracut.sh | 3 ++-
Harald Hoyer bb31e7
 1 file changed, 2 insertions(+), 1 deletion(-)
Harald Hoyer bb31e7
Harald Hoyer bb31e7
diff --git a/dracut.sh b/dracut.sh
Harald Hoyer bb31e7
index 9ba481b..1169037 100755
Harald Hoyer bb31e7
--- a/dracut.sh
Harald Hoyer bb31e7
+++ b/dracut.sh
Harald Hoyer bb31e7
@@ -1690,9 +1690,10 @@ if ! (
Harald Hoyer bb31e7
             | $compress >> "$outfile"
Harald Hoyer bb31e7
     ); then
Harald Hoyer bb31e7
     dfatal "dracut: creation of $outfile failed"
Harald Hoyer bb31e7
-	rm -f $outfile
Harald Hoyer bb31e7
+    rm -f "$outfile"
Harald Hoyer bb31e7
     exit 1
Harald Hoyer bb31e7
 fi
Harald Hoyer bb31e7
+
Harald Hoyer bb31e7
 dinfo "*** Creating initrd image file '$outfile' done ***"
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
 if (( maxloglvl >= 5 )); then