A typo in src/backend/libpq/hba.c breaks local ident authentication
in the SO_PEERCRED case. elif is misspelled as elsif for the test. A patch is attached. Bruno Wolff III
This commit is contained in:
parent
2a44306396
commit
35911088ff
|
@ -10,7 +10,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.93 2003/01/06 03:18:26 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.94 2003/03/15 16:18:25 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1248,7 +1248,7 @@ ident_unix(int sock, char *ident_user)
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
#elsif defined(SO_PEERCRED)
|
#elif defined(SO_PEERCRED)
|
||||||
/* Linux style: use getsockopt(SO_PEERCRED) */
|
/* Linux style: use getsockopt(SO_PEERCRED) */
|
||||||
struct ucred peercred;
|
struct ucred peercred;
|
||||||
ACCEPT_TYPE_ARG3 so_len = sizeof(peercred);
|
ACCEPT_TYPE_ARG3 so_len = sizeof(peercred);
|
||||||
|
|
Loading…
Reference in New Issue