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