Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3591108

Browse files
committed
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
1 parent 2a44306 commit 3591108

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/libpq/hba.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.93 2003/01/06 03:18:26 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.94 2003/03/15 16:18:25 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -1248,7 +1248,7 @@ ident_unix(int sock, char *ident_user)
12481248

12491249
return true;
12501250

1251-
#elsif defined(SO_PEERCRED)
1251+
#elif defined(SO_PEERCRED)
12521252
/* Linux style: use getsockopt(SO_PEERCRED) */
12531253
struct ucred peercred;
12541254
ACCEPT_TYPE_ARG3 so_len = sizeof(peercred);

0 commit comments

Comments
 (0)