=== Applying patches on top of PostgreSQL commit ID e87b024bfb8dd55e3049b1b6e6ab4e810cf1abc8 === /etc/rc.d/jail: WARNING: Per-jail configuration via jail_* variables is obsolete. Please consider migrating to /etc/jail.conf. Sat Nov 28 15:03:30 UTC 2026 On branch cf/7261 nothing to commit, working tree clean === using 'git am' to apply patch ./v3-0001-libpq-Do-not-leave-password-residue-in-passwordFr.patch === Applying: libpq: Do not leave password residue in passwordFromFile()'s result Using index info to reconstruct a base tree... M src/interfaces/libpq/fe-connect.c Falling back to patching base and 3-way merge... Auto-merging src/interfaces/libpq/fe-connect.c CONFLICT (content): Merge conflict in src/interfaces/libpq/fe-connect.c error: Failed to merge in the changes. hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0001 libpq: Do not leave password residue in passwordFromFile()'s result When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". === using patch(1) to apply patch ./v3-0001-libpq-Do-not-leave-password-residue-in-passwordFr.patch === patching file src/interfaces/libpq/fe-connect.c Hunk #1 succeeded at 7948 (offset -52 lines). Hunk #2 succeeded at 8077 with fuzz 2 (offset -43 lines). Hunk #3 FAILED at 8149. 1 out of 3 hunks FAILED -- saving rejects to file src/interfaces/libpq/fe-connect.c.rej Unstaged changes after reset: M src/interfaces/libpq/fe-connect.c Removing src/interfaces/libpq/fe-connect.c.rej === using 'git apply' to apply patch ./v3-0001-libpq-Do-not-leave-password-residue-in-passwordFr.patch === Applied patch to 'src/interfaces/libpq/fe-connect.c' with conflicts. U src/interfaces/libpq/fe-connect.c diff --cc src/interfaces/libpq/fe-connect.c index 381998c7d48,a86564e192a..00000000000 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@@ -8064,7 -8120,15 +8068,19 @@@ passwordFromFile(const char *hostname, *p1, *p2; ++<<<<<<< ours + /* De-escape the password, before copying it out. */ ++======= + /* + * De-escape the password in place, within the line buffer, + * before copying it out. Copying first and de-escaping the + * copy would leave the tail of the escaped password, and + * anything following it on the line, in the result past the + * terminating zero byte, where a caller that clears + * strlen(ret) bytes (as pqReleaseConnHosts() does) cannot + * reach it. The line buffer itself is cleared below. + */ ++>>>>>>> theirs for (p1 = p2 = t; *p1 != ':' && *p1 != '\0'; ++p1, ++p2) { if (*p1 == '\\' && p1[1] != '\0')