]> granicus.if.org Git - postgresql/commit
Enlarge find_other_exec's meager fgets buffer
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 19 Apr 2018 13:45:15 +0000 (10:45 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 19 Apr 2018 13:45:15 +0000 (10:45 -0300)
commitcea5f9aa1244a6a803481f7e21a86e7e7037a9a5
tree2c10e6b270890ce92a8fb22edca14e0d8b45b856
parentff4943042f9761fb4e84432da563f43eb3559a3b
Enlarge find_other_exec's meager fgets buffer

The buffer was 100 bytes long, which is barely sufficient when the
version string gets longer (such as by configure --with-extra-version).
Set it to MAXPGPATH.

Author: Nikhil Sontakke
Discussion: https://postgr.es/m/CAMGcDxfLfpYU_Jru++L6ARPCOyxr0W+2O3Q54TDi5XdYeU36ow@mail.gmail.com
src/common/exec.c