From: Guillaume Aubert Date: Thu, 15 May 2014 22:59:01 +0000 (-0700) Subject: Skip commented out lines in auth file. X-Git-Tag: pgbouncer_1_6_rc1~9^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=995acda16ce30cde67ab1839387138b7545ff786;p=pgbouncer Skip commented out lines in auth file. --- diff --git a/src/loader.c b/src/loader.c index 9496084..84b90e7 100644 --- a/src/loader.c +++ b/src/loader.c @@ -556,6 +556,12 @@ bool load_auth_file(const char *fn) if (!*p) break; + /* skip commented-out lines */ + if (*p == ';') { + while (*p && *p != '\n') p++; + continue; + } + /* start of line */ if (*p != '"') { log_error("broken auth file");