pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Allow DOS-style line endings in ~/.pgpass files. 6+ messages / 1 participants [nested] [flat]
* pgsql: Allow DOS-style line endings in ~/.pgpass files. @ 2016-11-15 21:17 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-11-15 21:17 UTC (permalink / raw) To: pgsql-committers Allow DOS-style line endings in ~/.pgpass files. On Windows, libc will mask \r\n line endings for us, since we read the password file in text mode. But that doesn't happen on Unix. People who share password files across both systems might have \r\n line endings in a file they use on Unix, so as a convenience, ignore trailing \r. Per gripe from Josh Berkus. In passing, put the existing check for empty line somewhere where it's actually useful, ie after stripping the newline not before. Vik Fearing, adjusted a bit by me Discussion: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com> Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/0a7481930c788e9d74a154aac0c8b401fc6a81f9 Modified Files -------------- src/interfaces/libpq/fe-connect.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Allow DOS-style line endings in ~/.pgpass files. @ 2016-11-15 21:17 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-11-15 21:17 UTC (permalink / raw) To: pgsql-committers Allow DOS-style line endings in ~/.pgpass files. On Windows, libc will mask \r\n line endings for us, since we read the password file in text mode. But that doesn't happen on Unix. People who share password files across both systems might have \r\n line endings in a file they use on Unix, so as a convenience, ignore trailing \r. Per gripe from Josh Berkus. In passing, put the existing check for empty line somewhere where it's actually useful, ie after stripping the newline not before. Vik Fearing, adjusted a bit by me Discussion: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com> Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/a69e6d9a6cd9fef893f4cf5b29a9ccf1b015c317 Modified Files -------------- src/interfaces/libpq/fe-connect.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Allow DOS-style line endings in ~/.pgpass files. @ 2016-11-15 21:17 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-11-15 21:17 UTC (permalink / raw) To: pgsql-committers Allow DOS-style line endings in ~/.pgpass files. On Windows, libc will mask \r\n line endings for us, since we read the password file in text mode. But that doesn't happen on Unix. People who share password files across both systems might have \r\n line endings in a file they use on Unix, so as a convenience, ignore trailing \r. Per gripe from Josh Berkus. In passing, put the existing check for empty line somewhere where it's actually useful, ie after stripping the newline not before. Vik Fearing, adjusted a bit by me Discussion: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com> Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/8951f92da48cb2866b9f694e91f57eeaac7489bb Modified Files -------------- src/interfaces/libpq/fe-connect.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Allow DOS-style line endings in ~/.pgpass files. @ 2016-11-15 21:17 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-11-15 21:17 UTC (permalink / raw) To: pgsql-committers Allow DOS-style line endings in ~/.pgpass files. On Windows, libc will mask \r\n line endings for us, since we read the password file in text mode. But that doesn't happen on Unix. People who share password files across both systems might have \r\n line endings in a file they use on Unix, so as a convenience, ignore trailing \r. Per gripe from Josh Berkus. In passing, put the existing check for empty line somewhere where it's actually useful, ie after stripping the newline not before. Vik Fearing, adjusted a bit by me Discussion: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com> Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e9802122d42aee661113423d290d41b005a9b1b2 Modified Files -------------- src/interfaces/libpq/fe-connect.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Allow DOS-style line endings in ~/.pgpass files. @ 2016-11-15 21:17 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-11-15 21:17 UTC (permalink / raw) To: pgsql-committers Allow DOS-style line endings in ~/.pgpass files. On Windows, libc will mask \r\n line endings for us, since we read the password file in text mode. But that doesn't happen on Unix. People who share password files across both systems might have \r\n line endings in a file they use on Unix, so as a convenience, ignore trailing \r. Per gripe from Josh Berkus. In passing, put the existing check for empty line somewhere where it's actually useful, ie after stripping the newline not before. Vik Fearing, adjusted a bit by me Discussion: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com> Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/46b6f3fff0f11b22538d63f3711b206250bc6962 Modified Files -------------- src/interfaces/libpq/fe-connect.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Allow DOS-style line endings in ~/.pgpass files. @ 2016-11-15 21:17 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2016-11-15 21:17 UTC (permalink / raw) To: pgsql-committers Allow DOS-style line endings in ~/.pgpass files. On Windows, libc will mask \r\n line endings for us, since we read the password file in text mode. But that doesn't happen on Unix. People who share password files across both systems might have \r\n line endings in a file they use on Unix, so as a convenience, ignore trailing \r. Per gripe from Josh Berkus. In passing, put the existing check for empty line somewhere where it's actually useful, ie after stripping the newline not before. Vik Fearing, adjusted a bit by me Discussion: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com> Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/13aa9af378740795572294a800975254a969e890 Modified Files -------------- src/interfaces/libpq/fe-connect.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2016-11-15 21:17 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-11-15 21:17 pgsql: Allow DOS-style line endings in ~/.pgpass files. Tom Lane <tgl@sss.pgh.pa.us> 2016-11-15 21:17 pgsql: Allow DOS-style line endings in ~/.pgpass files. Tom Lane <tgl@sss.pgh.pa.us> 2016-11-15 21:17 pgsql: Allow DOS-style line endings in ~/.pgpass files. Tom Lane <tgl@sss.pgh.pa.us> 2016-11-15 21:17 pgsql: Allow DOS-style line endings in ~/.pgpass files. Tom Lane <tgl@sss.pgh.pa.us> 2016-11-15 21:17 pgsql: Allow DOS-style line endings in ~/.pgpass files. Tom Lane <tgl@sss.pgh.pa.us> 2016-11-15 21:17 pgsql: Allow DOS-style line endings in ~/.pgpass files. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox