Blame SOURCES/0027-policycoreutils-fixfiles-Fix-verify-option.patch

c33c08
From 4733a594c5df14f64293d19f16498e68dc5e3a98 Mon Sep 17 00:00:00 2001
c33c08
From: Vit Mojzis <vmojzis@redhat.com>
c33c08
Date: Tue, 24 Sep 2019 08:41:30 +0200
c33c08
Subject: [PATCH] policycoreutils/fixfiles: Fix "verify" option
c33c08
c33c08
"restorecon -n" (used in the "restore" function) has to be used with
c33c08
"-v" to display the files whose labels would be changed.
c33c08
c33c08
Fixes:
c33c08
   Fixfiles verify does not report misslabelled files unless "-v" option is
c33c08
   used.
c33c08
c33c08
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
c33c08
---
c33c08
 policycoreutils/scripts/fixfiles | 2 +-
c33c08
 1 file changed, 1 insertion(+), 1 deletion(-)
c33c08
c33c08
diff --git a/policycoreutils/scripts/fixfiles b/policycoreutils/scripts/fixfiles
c33c08
index df0042aa..be19e56c 100755
c33c08
--- a/policycoreutils/scripts/fixfiles
c33c08
+++ b/policycoreutils/scripts/fixfiles
c33c08
@@ -304,7 +304,7 @@ process() {
c33c08
 case "$1" in
c33c08
     restore) restore Relabel;;
c33c08
     check) VERBOSE="-v"; restore Check -n;;
c33c08
-    verify) restore Verify -n;;
c33c08
+    verify) VERBOSE="-v"; restore Verify -n;;
c33c08
     relabel) relabel;;
c33c08
     onboot)
c33c08
 	if [ -n "$RESTORE_MODE" -a "$RESTORE_MODE" != DEFAULT ]; then
c33c08
-- 
c33c08
2.21.0
c33c08