forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit640768c
committed
Field conninfo strings throughout src/bin/scripts.
These programs nominally accepted conninfo strings, but they wouldproceed to use the original dbname parameter as though it were anunadorned database name. This caused "reindexdb dbname=foo" to issue anSQL command that always failed, and other programs printed a conninfostring in error messages that purported to print a database name. Fixboth problems by using PQdb() to retrieve actual database names.Continue to print the full conninfo string when reporting a connectionfailure. It is informative there, and if the database name is the soleproblem, the server-side error message will include the name. Beyondthose user-visible fixes, this allows a subsequent commit to synthesizeand use conninfo strings without that implementation detail leaking intomessages. As a side effect, the "vacuuming database" message nowappears after, not before, the connection attempt. Back-patch to 9.1(all supported versions).Reviewed by Michael Paquier and Peter Eisentraut.Security:CVE-2016-54241 parent6655c07 commit640768c
File tree
5 files changed
+40
-42
lines changed- src/bin/scripts
5 files changed
+40
-42
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
212 |
| - | |
| 212 | + | |
213 | 213 |
| |
214 | 214 |
| |
215 |
| - | |
| 215 | + | |
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
195 |
| - | |
196 | 195 |
| |
197 | 196 |
| |
198 |
| - | |
| 197 | + | |
| 198 | + | |
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
202 |
| - | |
203 | 202 |
| |
204 | 203 |
| |
205 |
| - | |
| 204 | + | |
| 205 | + | |
206 | 206 |
| |
207 | 207 |
| |
208 | 208 |
| |
|
Lines changed: 13 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
263 | 263 |
| |
264 | 264 |
| |
265 | 265 |
| |
266 |
| - | |
| 266 | + | |
267 | 267 |
| |
268 | 268 |
| |
269 | 269 |
| |
| |||
280 | 280 |
| |
281 | 281 |
| |
282 | 282 |
| |
| 283 | + | |
| 284 | + | |
| 285 | + | |
283 | 286 |
| |
284 | 287 |
| |
285 | 288 |
| |
| |||
294 | 297 |
| |
295 | 298 |
| |
296 | 299 |
| |
297 |
| - | |
| 300 | + | |
298 | 301 |
| |
299 | 302 |
| |
300 |
| - | |
301 |
| - | |
302 |
| - | |
303 | 303 |
| |
304 | 304 |
| |
305 | 305 |
| |
306 | 306 |
| |
307 |
| - | |
| 307 | + | |
308 | 308 |
| |
309 | 309 |
| |
310 |
| - | |
| 310 | + | |
311 | 311 |
| |
312 | 312 |
| |
313 |
| - | |
| 313 | + | |
314 | 314 |
| |
315 | 315 |
| |
316 |
| - | |
| 316 | + | |
317 | 317 |
| |
318 | 318 |
| |
319 | 319 |
| |
| |||
359 | 359 |
| |
360 | 360 |
| |
361 | 361 |
| |
| 362 | + | |
362 | 363 |
| |
363 | 364 |
| |
364 |
| - | |
| 365 | + | |
| 366 | + | |
365 | 367 |
| |
366 | 368 |
| |
367 | 369 |
| |
| |||
370 | 372 |
| |
371 | 373 |
| |
372 | 374 |
| |
373 |
| - | |
| 375 | + | |
374 | 376 |
| |
375 |
| - | |
376 |
| - | |
377 | 377 |
| |
378 | 378 |
| |
379 | 379 |
| |
|
Lines changed: 21 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
61 |
| - | |
| 60 | + | |
62 | 61 |
| |
63 | 62 |
| |
64 |
| - | |
| 63 | + | |
65 | 64 |
| |
66 |
| - | |
67 |
| - | |
| 65 | + | |
68 | 66 |
| |
69 | 67 |
| |
70 | 68 |
| |
| |||
355 | 353 |
| |
356 | 354 |
| |
357 | 355 |
| |
| 356 | + | |
| 357 | + | |
| 358 | + | |
358 | 359 |
| |
359 | 360 |
| |
360 | 361 |
| |
361 |
| - | |
362 |
| - | |
| 362 | + | |
| 363 | + | |
363 | 364 |
| |
364 |
| - | |
| 365 | + | |
| 366 | + | |
365 | 367 |
| |
366 | 368 |
| |
367 | 369 |
| |
368 |
| - | |
369 |
| - | |
370 |
| - | |
371 | 370 |
| |
372 | 371 |
| |
373 | 372 |
| |
| |||
473 | 472 |
| |
474 | 473 |
| |
475 | 474 |
| |
476 |
| - | |
| 475 | + | |
477 | 476 |
| |
478 | 477 |
| |
479 | 478 |
| |
| |||
491 | 490 |
| |
492 | 491 |
| |
493 | 492 |
| |
494 |
| - | |
| 493 | + | |
495 | 494 |
| |
496 | 495 |
| |
497 | 496 |
| |
| |||
504 | 503 |
| |
505 | 504 |
| |
506 | 505 |
| |
507 |
| - | |
| 506 | + | |
508 | 507 |
| |
509 | 508 |
| |
510 | 509 |
| |
| |||
672 | 671 |
| |
673 | 672 |
| |
674 | 673 |
| |
675 |
| - | |
676 |
| - | |
| 674 | + | |
677 | 675 |
| |
678 | 676 |
| |
679 | 677 |
| |
| |||
692 | 690 |
| |
693 | 691 |
| |
694 | 692 |
| |
695 |
| - | |
| 693 | + | |
696 | 694 |
| |
697 | 695 |
| |
698 |
| - | |
| 696 | + | |
699 | 697 |
| |
700 | 698 |
| |
701 | 699 |
| |
| |||
721 | 719 |
| |
722 | 720 |
| |
723 | 721 |
| |
724 |
| - | |
| 722 | + | |
725 | 723 |
| |
726 | 724 |
| |
727 | 725 |
| |
| |||
761 | 759 |
| |
762 | 760 |
| |
763 | 761 |
| |
764 |
| - | |
| 762 | + | |
765 | 763 |
| |
766 | 764 |
| |
767 | 765 |
| |
| |||
777 | 775 |
| |
778 | 776 |
| |
779 | 777 |
| |
780 |
| - | |
| 778 | + | |
781 | 779 |
| |
782 | 780 |
| |
783 | 781 |
| |
| |||
796 | 794 |
| |
797 | 795 |
| |
798 | 796 |
| |
799 |
| - | |
| 797 | + | |
800 | 798 |
| |
801 | 799 |
| |
802 | 800 |
| |
| |||
812 | 810 |
| |
813 | 811 |
| |
814 | 812 |
| |
815 |
| - | |
| 813 | + | |
816 | 814 |
| |
817 | 815 |
| |
818 | 816 |
| |
|
0 commit comments
Comments
(0)