Skip to content

Unescape PostgreSQL passfile password#3993

Merged
abonander merged 3 commits intolaunchbadge:mainfrom
V02460:pgpass-escape
May 1, 2026
Merged

Unescape PostgreSQL passfile password#3993
abonander merged 3 commits intolaunchbadge:mainfrom
V02460:pgpass-escape

Conversation

@V02460
Copy link
Copy Markdown
Contributor

@V02460 V02460 commented Aug 22, 2025

This PR unescapes the password read from a passfile. Includes unittests and a small error handling refactor.

Is this a breaking change?

Yes. Passfile-provided passwords containing backslashes are now different.

Reference

https://github.com/postgres/postgres/blob/807ee417e562c355360e891f415e6e8e6e4c40ed/src/interfaces/libpq/fe-connect.c#L8065-L8072

@abonander abonander merged commit 9ecb76d into launchbadge:main May 1, 2026
104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants