Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#230] Correctly read last line of configuration file if no new-line #231

Conversation

fluca1978
Copy link
Collaborator

In the case the main configuration file has no new line in it, the
line is ignored by the function extract_key_value().
This can be a little tricky, since the line is ignored and the user
has no clue about it.
With this fix, the last line of pgagroal.conf is always interpreted
even if no new line is present.

Fixes the same problem even for pgagroal_hba.conf file read within extract_hba.

Clse #230

…-line

In the case the main configuration file has no new line in it, the
line is ignored by the function `extract_key_value()`.
This can be a little tricky, since the line is ignored and the user
has no clue about it.
With this fix, the last line of `pgagroal.conf` is always interpreted
even if no new line is present.

Fixes the same problem even for `pgagroal_hba.conf` file read within `extract_hba`.

Clse agroal#230
@jesperpedersen jesperpedersen added the bug Something isn't working label May 6, 2022
@jesperpedersen
Copy link
Collaborator

Merged.

Thanks for your contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants