Blame SOURCES/0024-policycoreutils-fixfiles-Fix-unbound-variable-proble.patch

9bbebd
From 7383f8fbab82826de21d3013a43680867642e49e Mon Sep 17 00:00:00 2001
9bbebd
From: Vit Mojzis <vmojzis@redhat.com>
9bbebd
Date: Wed, 21 Aug 2019 17:43:25 +0200
9bbebd
Subject: [PATCH] policycoreutils/fixfiles: Fix unbound variable problem
9bbebd
9bbebd
Fix a typo introduced in commit d3f8b2c3cd909 ("policycoreutils/fixfiles: Fix
9bbebd
[-B] [-F] onboot"), which broke  "fixfiles relabel":
9bbebd
9bbebd
    #fixfiles relabel
9bbebd
    /sbin/fixfiles: line 151: $1: unbound variable
9bbebd
9bbebd
Resolves: rhbz#1743213
9bbebd
---
9bbebd
 policycoreutils/scripts/fixfiles | 2 +-
9bbebd
 1 file changed, 1 insertion(+), 1 deletion(-)
9bbebd
9bbebd
diff --git a/policycoreutils/scripts/fixfiles b/policycoreutils/scripts/fixfiles
9bbebd
index a9d27d13..df0042aa 100755
9bbebd
--- a/policycoreutils/scripts/fixfiles
9bbebd
+++ b/policycoreutils/scripts/fixfiles
9bbebd
@@ -215,7 +215,7 @@ OPTION=$1
9bbebd
 shift
9bbebd
 
9bbebd
 # [-B | -N time ]
9bbebd
-if [ -z "$BOOTTIME" ]; then
9bbebd
+if [ -n "$BOOTTIME" ]; then
9bbebd
 	newer $BOOTTIME $*
9bbebd
 	return
9bbebd
 fi
9bbebd
-- 
9bbebd
2.21.0
9bbebd