Blame SOURCES/0038-policycoreutils-setfiles-Drop-unused-nerr-variable.patch

d6d821
From a691da617a2d3c864786ff2742d9a9f87ecc7d05 Mon Sep 17 00:00:00 2001
d6d821
From: Petr Lautrbach <plautrba@redhat.com>
d6d821
Date: Mon, 1 Feb 2021 15:24:32 +0100
d6d821
Subject: [PATCH] policycoreutils/setfiles: Drop unused nerr variable
d6d821
d6d821
Suggested-by: Nicolas Iooss <nicolas.iooss@m4x.org>
d6d821
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
d6d821
---
d6d821
 policycoreutils/setfiles/setfiles.c | 5 -----
d6d821
 1 file changed, 5 deletions(-)
d6d821
d6d821
diff --git a/policycoreutils/setfiles/setfiles.c b/policycoreutils/setfiles/setfiles.c
d6d821
index bcbdfbfe53e2..82d0aaa75893 100644
d6d821
--- a/policycoreutils/setfiles/setfiles.c
d6d821
+++ b/policycoreutils/setfiles/setfiles.c
d6d821
@@ -19,7 +19,6 @@ static int warn_no_match;
d6d821
 static int null_terminated;
d6d821
 static int request_digest;
d6d821
 static struct restore_opts r_opts;
d6d821
-static int nerr;
d6d821
 
d6d821
 #define STAT_BLOCK_SIZE 1
d6d821
 
d6d821
@@ -162,7 +161,6 @@ int main(int argc, char **argv)
d6d821
 	warn_no_match = 0;
d6d821
 	request_digest = 0;
d6d821
 	policyfile = NULL;
d6d821
-	nerr = 0;
d6d821
 
d6d821
 	r_opts.abort_on_error = 0;
d6d821
 	r_opts.progname = strdup(argv[0]);
d6d821
@@ -417,9 +415,6 @@ int main(int argc, char **argv)
d6d821
 	r_opts.selabel_opt_digest = (request_digest ? (char *)1 : NULL);
d6d821
 	r_opts.selabel_opt_path = altpath;
d6d821
 
d6d821
-	if (nerr)
d6d821
-		exit(-1);
d6d821
-
d6d821
 	restore_init(&r_opts);
d6d821
 
d6d821
 	if (use_input_file) {
d6d821
-- 
d6d821
2.30.0
d6d821