#2776 ini_config_augment strange merge behavior
Closed 7 years ago Opened 8 years ago by rharwood.

When ini_config_augment() is asked to load snippets from an empty directory, it returns with result_cfg set to NULL. It has this behavior even when base_cfg is not NULL.

The documentation for ini_config_augment(), however, states that result_cfg will be set to the result of merging base_cfg with the snippets found in the specified directory. The behavior observed seems at odds with this description: it seems to merge something with nothing, and yield nothing (where did the something go?).

I believe this is caused by an early-exit from ini_aug_apply() (currently lines 682-688 of ini_augment.c) which should occur after the ini_config_copy() has taken place.


Fields changed

rhbz: => todo

Fields changed

rhbz: => todo

Fields changed

rhbz: => todo

Metadata Update from @rharwood:
- Issue set to the milestone: ding-libs 0.6.0

7 years ago

Metadata Update from @lslebodn:
- Custom field component reset
- Custom field design_review reset
- Custom field mark reset
- Custom field patch reset
- Custom field review reset
- Custom field sensitive reset
- Custom field testsupdated reset
- Custom field type reset
- Custom field version reset
- Issue close_status updated to: None

7 years ago

Metadata Update from @lslebodn:
- Custom field design_review reset
- Custom field mark reset
- Custom field patch reset
- Custom field review reset
- Custom field sensitive reset
- Custom field testsupdated reset
- Issue status updated to: Closed (was: Open)

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/3817

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata