Blame SOURCES/0203-Fix-coverity-issues-in-shell-scripts-1226325.patch

d41074
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a85e8e
From: Robert Marshall <rmarshall@redhat.com>
a85e8e
Date: Thu, 7 Jul 2016 15:05:26 -0400
d41074
Subject: [PATCH] Fix coverity issues in shell scripts (#1226325)
a85e8e
a85e8e
Remove unused variables called out by coverity. Convert a non-quoted
a85e8e
variable to a quoted variable without use of deprecated backticks.
a85e8e
a85e8e
Related: rhbz#1226325
a85e8e
---
a85e8e
 util/grub-get-kernel-settings.in | 9 ---------
a85e8e
 util/grub-mkconfig.in            | 2 +-
a85e8e
 2 files changed, 1 insertion(+), 10 deletions(-)
a85e8e
a85e8e
diff --git a/util/grub-get-kernel-settings.in b/util/grub-get-kernel-settings.in
d41074
index ae0b4696d49..cee8c209650 100644
a85e8e
--- a/util/grub-get-kernel-settings.in
a85e8e
+++ b/util/grub-get-kernel-settings.in
a85e8e
@@ -21,27 +21,18 @@ prefix="@prefix@"
a85e8e
 exec_prefix="@exec_prefix@"
a85e8e
 datarootdir="@datarootdir@"
a85e8e
 
a85e8e
-prefix="@prefix@"
a85e8e
 exec_prefix="@exec_prefix@"
a85e8e
 sbindir="@sbindir@"
a85e8e
 bindir="@bindir@"
a85e8e
-sysconfdir="@sysconfdir@"
a85e8e
 PACKAGE_NAME=@PACKAGE_NAME@
a85e8e
 PACKAGE_VERSION=@PACKAGE_VERSION@
a85e8e
-host_os=@host_os@
a85e8e
 datadir="@datadir@"
a85e8e
 if [ "x$pkgdatadir" = x ]; then
a85e8e
     pkgdatadir="${datadir}/@PACKAGE@"
a85e8e
 fi
a85e8e
-grub_cfg=""
a85e8e
 
a85e8e
 self=`basename $0`
a85e8e
 
a85e8e
-grub_probe="${sbindir}/@grub_probe@"
a85e8e
-grub_file="${bindir}/@grub_file@"
a85e8e
-grub_editenv="${bindir}/@grub_editenv@"
a85e8e
-grub_script_check="${bindir}/@grub_script_check@"
a85e8e
-
a85e8e
 export TEXTDOMAIN=@PACKAGE@
a85e8e
 export TEXTDOMAINDIR="@localedir@"
a85e8e
 
a85e8e
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
d41074
index aa4fdb8a3b2..86801aa4e5c 100644
a85e8e
--- a/util/grub-mkconfig.in
a85e8e
+++ b/util/grub-mkconfig.in
a85e8e
@@ -149,7 +149,7 @@ if test -f ${sysconfdir}/default/grub ; then
a85e8e
   . ${sysconfdir}/default/grub
a85e8e
 fi
a85e8e
 
a85e8e
-eval `${grub_get_kernel_settings}` || true
a85e8e
+eval "$("${grub_get_kernel_settings}")" || true
a85e8e
 
a85e8e
 if [ "x$GRUB_DISABLE_UUID" != "xtrue" -a -z "$GRUB_DEVICE_UUID" ]; then
a85e8e
   GRUB_DEVICE_UUID="$GRUB_DEVICE_UUID_GENERATED"