diff options
Diffstat (limited to 'selinux/setfiles.c')
-rw-r--r-- | selinux/setfiles.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/selinux/setfiles.c b/selinux/setfiles.c index 55bfb4d02..a617b95d8 100644 --- a/selinux/setfiles.c +++ b/selinux/setfiles.c | |||
@@ -463,11 +463,9 @@ static int restore(const char *file) | |||
463 | * This function is called by recursive_action on each file during | 463 | * This function is called by recursive_action on each file during |
464 | * the directory traversal. | 464 | * the directory traversal. |
465 | */ | 465 | */ |
466 | static int FAST_FUNC apply_spec( | 466 | static int FAST_FUNC apply_spec(struct recursive_state *state UNUSED_PARAM, |
467 | const char *file, | 467 | const char *file, |
468 | struct stat *sb, | 468 | struct stat *sb) |
469 | void *userData UNUSED_PARAM, | ||
470 | int depth UNUSED_PARAM) | ||
471 | { | 469 | { |
472 | if (!follow_mounts) { | 470 | if (!follow_mounts) { |
473 | /* setfiles does not process across different mount points */ | 471 | /* setfiles does not process across different mount points */ |
@@ -535,7 +533,7 @@ static int process_one(char *name) | |||
535 | ACTION_RECURSE, | 533 | ACTION_RECURSE, |
536 | apply_spec, | 534 | apply_spec, |
537 | apply_spec, | 535 | apply_spec, |
538 | NULL, 0) != TRUE | 536 | NULL) != TRUE |
539 | ) { | 537 | ) { |
540 | bb_error_msg("error while labeling %s", name); | 538 | bb_error_msg("error while labeling %s", name); |
541 | goto err; | 539 | goto err; |