setfiles: remove useless assignment and comment (after RHBZ#1926386)

Commit 9207823c8f ("setfiles: Do not abort on labeling error",
2021-02-01) hoisted the zeroing of "r_opts.abort_on_error" above the
branching on "setfiles vs. restorecon". Clean up two aspects:

- "r_opts" is altogether zeroed a bit higher up, so remove the explicit
  zero-assignment;

- neither "setfiles" nor "restorecon" aborts on errors during the file
  tree walk now, so remove the comment "Do not abort on errors during the
  file tree walk" from the "restorecon" branch as well.

Cc: "Richard W.M. Jones" <rjones@redhat.com>
Cc: Petr Lautrbach <plautrba@redhat.com>
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1794518
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Laszlo Ersek 2022-05-03 10:23:23 +02:00 committed by Petr Lautrbach
parent aab2498a82
commit fd9a851db4

View file

@ -162,7 +162,6 @@ int main(int argc, char **argv)
request_digest = 0;
policyfile = NULL;
r_opts.abort_on_error = 0;
if (!argv[0]) {
fprintf(stderr, "Called without required program name!\n");
exit(-1);
@ -197,7 +196,6 @@ int main(int argc, char **argv)
* restorecon:
* No recursive descent unless -r/-R,
* Expands paths via realpath,
* Do not abort on errors during the file tree walk,
* Do not try to track inode associations for conflict detection,
* Follows mounts,
* Does lazy validation of contexts upon use.