forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf14413b
committed
Sort out getpeereid() and peer auth handling on Windows
The getpeereid() uses have so far been protected by HAVE_UNIX_SOCKETS,so they didn't ever care about Windows support. But in anticipationof Unix-domain socket support on Windows, that needs to be handleddifferently.Windows doesn't support getpeereid() at this time, so we use theexisting not-supported code path. We let configure do its usual thingof picking up the replacement from libpgport, instead of the customoverrides that it was doing before.But then Windows doesn't have struct passwd, so this patch sprinklessome additional #ifdef WIN32 around to make it work. This is similarto existing code that deals with this issue.Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>Discussion:https://www.postgresql.org/message-id/5974caea-1267-7708-40f2-6009a9d653b0@2ndquadrant.com1 parent956ef58 commitf14413b
File tree
6 files changed
+36
-42
lines changed- src
- backend/libpq
- include
- interfaces/libpq
- tools/msvc
6 files changed
+36
-42
lines changedLines changed: 15 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15685 | 15685 |
| |
15686 | 15686 |
| |
15687 | 15687 |
| |
| 15688 | + | |
| 15689 | + | |
| 15690 | + | |
| 15691 | + | |
| 15692 | + | |
| 15693 | + | |
| 15694 | + | |
| 15695 | + | |
| 15696 | + | |
| 15697 | + | |
| 15698 | + | |
| 15699 | + | |
| 15700 | + | |
15688 | 15701 |
| |
15689 | 15702 |
| |
15690 | 15703 |
| |
| |||
15863 | 15876 |
| |
15864 | 15877 |
| |
15865 | 15878 |
| |
15866 |
| - | |
15867 | 15879 |
| |
15868 |
| - | |
15869 |
| - | |
15870 | 15880 |
| |
15871 | 15881 |
| |
15872 | 15882 |
| |
15873 | 15883 |
| |
15874 |
| - | |
15875 |
| - | |
15876 |
| - | |
15877 | 15884 |
| |
15878 |
| - | |
| 15885 | + | |
15879 | 15886 |
| |
15880 | 15887 |
| |
15881 | 15888 |
| |
| |||
15890 | 15897 |
| |
15891 | 15898 |
| |
15892 | 15899 |
| |
15893 |
| - | |
15894 |
| - | |
15895 |
| - | |
15896 | 15900 |
| |
15897 |
| - | |
15898 |
| - | |
15899 |
| - | |
15900 |
| - | |
15901 |
| - | |
15902 |
| - | |
15903 |
| - | |
15904 |
| - | |
15905 |
| - | |
15906 |
| - | |
15907 |
| - | |
| 15901 | + | |
15908 | 15902 |
| |
15909 | 15903 |
| |
15910 | 15904 |
| |
|
Lines changed: 4 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1729 | 1729 |
| |
1730 | 1730 |
| |
1731 | 1731 |
| |
| 1732 | + | |
1732 | 1733 |
| |
1733 | 1734 |
| |
1734 | 1735 |
| |
| |||
1757 | 1758 |
| |
1758 | 1759 |
| |
1759 | 1760 |
| |
1760 |
| - | |
1761 | 1761 |
| |
1762 |
| - | |
1763 |
| - | |
1764 | 1762 |
| |
1765 | 1763 |
| |
1766 |
| - | |
1767 | 1764 |
| |
1768 |
| - | |
| 1765 | + | |
1769 | 1766 |
| |
1770 |
| - | |
1771 |
| - | |
| 1767 | + | |
| 1768 | + | |
1772 | 1769 |
| |
1773 | 1770 |
| |
1774 | 1771 |
| |
|
Lines changed: 8 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
81 | 80 |
| |
82 |
| - | |
83 | 81 |
| |
84 | 82 |
| |
85 | 83 |
| |
| |||
559 | 557 |
| |
560 | 558 |
| |
561 | 559 |
| |
562 |
| - | |
563 | 560 |
| |
564 |
| - | |
565 |
| - | |
566 |
| - | |
567 | 561 |
| |
568 | 562 |
| |
569 | 563 |
| |
| |||
1984 | 1978 |
| |
1985 | 1979 |
| |
1986 | 1980 |
| |
1987 |
| - | |
1988 |
| - | |
1989 | 1981 |
| |
1990 | 1982 |
| |
1991 | 1983 |
| |
1992 | 1984 |
| |
1993 | 1985 |
| |
| 1986 | + | |
1994 | 1987 |
| |
1995 | 1988 |
| |
1996 | 1989 |
| |
| 1990 | + | |
1997 | 1991 |
| |
1998 | 1992 |
| |
1999 | 1993 |
| |
| |||
2009 | 2003 |
| |
2010 | 2004 |
| |
2011 | 2005 |
| |
| 2006 | + | |
2012 | 2007 |
| |
2013 | 2008 |
| |
2014 | 2009 |
| |
| |||
2030 | 2025 |
| |
2031 | 2026 |
| |
2032 | 2027 |
| |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
2033 | 2033 |
| |
2034 |
| - | |
2035 | 2034 |
| |
2036 | 2035 |
| |
2037 | 2036 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
354 | 354 |
| |
355 | 355 |
| |
356 | 356 |
| |
357 |
| - | |
| 357 | + | |
358 | 358 |
| |
359 | 359 |
| |
360 | 360 |
| |
|
Lines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2733 | 2733 |
| |
2734 | 2734 |
| |
2735 | 2735 |
| |
2736 |
| - | |
2737 |
| - | |
2738 | 2736 |
| |
2739 | 2737 |
| |
2740 | 2738 |
| |
2741 | 2739 |
| |
2742 | 2740 |
| |
2743 | 2741 |
| |
2744 | 2742 |
| |
| 2743 | + | |
2745 | 2744 |
| |
2746 | 2745 |
| |
2747 | 2746 |
| |
2748 | 2747 |
| |
| 2748 | + | |
2749 | 2749 |
| |
2750 | 2750 |
| |
2751 | 2751 |
| |
| |||
2766 | 2766 |
| |
2767 | 2767 |
| |
2768 | 2768 |
| |
| 2769 | + | |
2769 | 2770 |
| |
2770 | 2771 |
| |
2771 | 2772 |
| |
| |||
2788 | 2789 |
| |
2789 | 2790 |
| |
2790 | 2791 |
| |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
2791 | 2796 |
| |
2792 |
| - | |
2793 | 2797 |
| |
2794 | 2798 |
| |
2795 | 2799 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
97 |
| - | |
| 97 | + | |
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
|
0 commit comments
Comments
(0)