- Notifications
You must be signed in to change notification settings - Fork5
Commit3405f2b
committed
Use error message wordings for permissions checks on .pgpass and SSL private
key files that are similar to the one for the postmaster's data directorypermissions check. (I chose to standardize on that one since it's the mostheavily used and presumably best-wordsmithed by now.) Also eliminate explicittests on file ownership in these places, since the ensuing read attempt mustfail anyway if it's wrong, and there seems no value in issuing the same errormessage for distinct problems. (But I left in the explicit ownership test inpostmaster.c, since it had its own error message anyway.) Also be morespecific in the documentation's descriptions of these checks. Per a gripefrom Kevin Hunter.1 parentc5f11f9 commit3405f2b
File tree
6 files changed
+39
-24
lines changed- doc/src/sgml
- src
- backend
- libpq
- postmaster
- interfaces/libpq
6 files changed
+39
-24
lines changedLines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
5223 | 5223 |
| |
5224 | 5224 |
| |
5225 | 5225 |
| |
5226 |
| - | |
5227 |
| - | |
| 5226 | + | |
| 5227 | + | |
| 5228 | + | |
| 5229 | + | |
5228 | 5230 |
| |
5229 |
| - | |
5230 |
| - | |
| 5231 | + | |
| 5232 | + | |
5231 | 5233 |
| |
5232 | 5234 |
| |
5233 | 5235 |
| |
|
Lines changed: 12 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
1632 | 1632 |
| |
1633 | 1633 |
| |
1634 | 1634 |
| |
1635 |
| - | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
1636 | 1640 |
| |
1637 | 1641 |
| |
1638 | 1642 |
| |
| |||
1731 | 1735 |
| |
1732 | 1736 |
| |
1733 | 1737 |
| |
1734 |
| - | |
1735 | 1738 |
| |
1736 | 1739 |
| |
1737 | 1740 |
| |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
1738 | 1747 |
| |
1739 | 1748 |
| |
1740 | 1749 |
| |
|
Lines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
735 | 735 |
| |
736 | 736 |
| |
737 | 737 |
| |
738 |
| - | |
| 738 | + | |
739 | 739 |
| |
740 | 740 |
| |
741 | 741 |
| |
| |||
750 | 750 |
| |
751 | 751 |
| |
752 | 752 |
| |
753 |
| - | |
754 |
| - | |
| 753 | + | |
755 | 754 |
| |
756 | 755 |
| |
757 |
| - | |
| 756 | + | |
758 | 757 |
| |
759 |
| - | |
| 758 | + | |
760 | 759 |
| |
761 | 760 |
| |
762 | 761 |
| |
|
Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
1053 | 1053 |
| |
1054 | 1054 |
| |
1055 | 1055 |
| |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
1056 | 1063 |
| |
1057 | 1064 |
| |
1058 | 1065 |
| |
|
Lines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
3718 | 3718 |
| |
3719 | 3719 |
| |
3720 | 3720 |
| |
3721 |
| - | |
| 3721 | + | |
3722 | 3722 |
| |
3723 | 3723 |
| |
3724 | 3724 |
| |
3725 |
| - | |
3726 | 3725 |
| |
3727 | 3726 |
| |
3728 | 3727 |
| |
| |||
3735 | 3734 |
| |
3736 | 3735 |
| |
3737 | 3736 |
| |
3738 |
| - | |
| 3737 | + | |
3739 | 3738 |
| |
3740 | 3739 |
| |
3741 | 3740 |
| |
|
Lines changed: 4 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
703 | 703 |
| |
704 | 704 |
| |
705 | 705 |
| |
706 |
| - | |
| 706 | + | |
707 | 707 |
| |
708 | 708 |
| |
709 | 709 |
| |
| |||
712 | 712 |
| |
713 | 713 |
| |
714 | 714 |
| |
715 |
| - | |
716 |
| - | |
| 715 | + | |
717 | 716 |
| |
718 | 717 |
| |
719 |
| - | |
| 718 | + | |
720 | 719 |
| |
721 | 720 |
| |
722 | 721 |
| |
|
0 commit comments
Comments
(0)