setfiles: drop now unused static variable
PATCH 1/1 setfiles: drop now unused static variable
be7f54cb1f88d96592af8f0df0e62dda002907a5 made the variable nerr useless. Remove it.
Signed-off-by Christian Göttsche <[email protected]>
--- policycoreutils/setfiles/setfiles.c | 5 ----- 1 file changed, 5 deletions(-)
policycoreutils/setfiles/setfiles.c +0 -5
@@ -19,7 +19,6 @@ static int warn_no_match;static int null_terminated;static int request_digest;static struct restore_opts r_opts; -static int nerr;#define STAT_BLOCK_SIZE 1
@@ -161,7 +160,6 @@ int main(int argc, char **argv) warn_no_match =0 ; request_digest =0 ; policyfile =NULL ; - nerr =0 ; r_opts.abort_on_error =0 ; r_opts.progname =strdup (argv[0 ]);
@@ -427,9 +425,6 @@ int main(int argc, char **argv) r_opts.selabel_opt_digest = (request_digest ? (char *)1 :NULL ); r_opts.selabel_opt_path = altpath; -if (nerr) -exit (-1 ); -restore_init (&r_opts);if (use_input_file) {
Signature · 1 line
2.30.0
Am Mo., 1. Feb. 2021 um 15:57 Uhr schrieb Christian Göttsche <[email protected]>:
Quoted 40 lines
be7f54cb1f88d96592af8f0df0e62dda002907a5made the variable nerr useless. Remove it.Signed-off-by Christian Göttsche <[email protected]>--- policycoreutils/setfiles/setfiles.c | 5 ----- 1 file changed, 5 deletions(-)policycoreutils/setfiles/setfiles.c +0
-6@@ -19,7 +19,6 @@ static int warn_no_match;static int null_terminated;static int request_digest;static struct restore_opts r_opts; -static int nerr;#define STAT_BLOCK_SIZE 1@@ -161,7 +160,6 @@ int main(int argc, char **argv) warn_no_match =0 ; request_digest =0 ; policyfile =NULL ; - nerr =0 ; r_opts.abort_on_error =0 ; r_opts.progname =strdup (argv[0 ]);@@ -427,9 +425,6 @@ int main(int argc, char **argv) r_opts.selabel_opt_digest = (request_digest ? (char *)1 :NULL ); r_opts.selabel_opt_path = altpath; -if (nerr) -exit (-1 ); -restore_init (&r_opts);if (use_input_file) { --
Quoted 2 lines
2.30.0
Duplicate of https://patchwork.kernel.org/project/selinux/patch/[email protected]/
Please ignore.