[check_postgres] Patch to fix a .check_postgresrc issue

Guillaume Lelarge guillaume at lelarge.info
Wed Sep 2 17:27:02 UTC 2009


Le mercredi 2 septembre 2009 à 17:55:29, Greg Sabino Mullane a écrit :
> > This really small patch fixes an issue when someone tries to change
> > PSQL with a .check_postgresrc file.
>
> I think you are misunderstanding how the NO_PSQL_OPTION works. If on
> (the default), you are not allowed to use the --PSQL option, as we run
> that exectuable via a direct system call. To allow it to be excluded via
> an option would defeat the point. Perhaps we could allow it to be
> changed only via the check_postgresrc file. Thoughts?

You're right. I completely forgot the security part of it. I guess the best 
thing I can do is to put the good path to psql on all my customers' PATH. Not 
that I didn't want to do it. I really don't know why we didn't do that in the 
first place.

Thanks for your answer.


-- 
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com


More information about the Check_postgres mailing list