Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Conversation

@benmehlman
Copy link

Trying to get pgsql-fd working in our setup, I had some major issues that turned out to be bugs, as follows:

  1. The code allows for the possibility that realpath() may return NULL under some circumstances and tries to handle this. But the malloc/free logic was bad, causing a crash. Also, needless duplicate allocation was being done. This has been fixed and cleaned up.

  2. The code was not checking to see if the config file had been successfully opened after getting a backup or restore event. This resulted in a false Success job status with zero length backup in the case of failure to read the file. I have put in a check and returned an M_FATAL JobMessage to prevent this occurrence. Note that this filename is embedded in the FileSet so it's pretty easy for this error to occur.

Thanks!

joergsteffens added a commit that referenced this pull request Feb 25, 2016
Some major problems getting postgres backups working.. fixed
@joergsteffens joergsteffens merged commit 084cb8e into bareos:bareos-master Feb 25, 2016
@joergsteffens
Copy link
Member

Looks good. Thank you for the patch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants