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

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