Skip to content
Commit e54012ce authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

sysctl: Move sysctl_check_dups into insert_header



Simplify the callers of insert_header by removing explicit calls to check
for duplicates and instead have insert_header do the work.

This makes the code slightly more maintainable by enabling changes to
data structures where the insertion of new entries without duplicate
suppression is not possible.

There is not always a convenient path string where insert_header
is called so modify sysctl_check_dups to use sysctl_print_dir
when printing the full path when a duplicate is discovered.

Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent 60a47a2e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment