Rewrite ProcessConfigFile() to avoid misbehavior at EOF, as per report

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 7833a8870c354a2f4b7844361d442d3d96bec8d1
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-01-01T19:53:48Z
Releases: 8.1.2
Rewrite ProcessConfigFile() to avoid misbehavior at EOF, as per report
from Andrus Moor.  The former state-machine-style coding wasn't actually
doing much except obscuring the control flow, and it didn't extend
readily to fix this case, so I just took it out.  Also, add a
YY_FLUSH_BUFFER call to ensure the lexer is reset correctly if the
previous scan failed partway through the file.

Files

PathChange+/−
src/backend/utils/misc/guc-file.l modified +77 −78