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

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