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

a85e8e
From de072639935e3f8a0e43f7f5c5961a919d950406 Mon Sep 17 00:00:00 2001
a85e8e
From: Robert Marshall <rmarshall@redhat.com>
a85e8e
Date: Thu, 7 Jul 2016 15:05:26 -0400
a85e8e
Subject: [PATCH 203/260] 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
a85e8e
index ae0b4696d..cee8c2096 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
a85e8e
index aa4fdb8a3..86801aa4e 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"
a85e8e
-- 
a85e8e
2.13.0
a85e8e