Refactoring the addagent files for improving the usability#757
Refactoring the addagent files for improving the usability#757netman2k wants to merge 2 commits intoossec:masterfrom
Conversation
|
I use the ossec-authd daemon to register new agents for automation. so I changed the addagent/manage_agents.c file as below:
|
|
Reviewed 3 of 3 files at r1. src/addagent/manage_agents.c, line 344 [r1] (raw file): src/addagent/manage_agents.c, line 345 [r1] (raw file): Comments from the review on Reviewable.io |
I found that If I use the getFullnameById function directly from other files. it could not find the full name properly. cause the code tries to load the key file statically even though it uses chroot environment.
I think that it should be changed as the diff.
Please investigate this problem and merge them if you do not find any problems.