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.
*** hba.c       Sat Mar 15 10:15:46 2003
--- hba.c.old   Sat Mar 15 10:15:29 2003
***************
*** 1248,1254 ****
  
        return true;
  
! #elif defined(SO_PEERCRED)
        /* Linux style: use getsockopt(SO_PEERCRED) */
        struct ucred peercred;
        ACCEPT_TYPE_ARG3 so_len = sizeof(peercred);
--- 1248,1254 ----
  
        return true;
  
! #elsif defined(SO_PEERCRED)
        /* Linux style: use getsockopt(SO_PEERCRED) */
        struct ucred peercred;
        ACCEPT_TYPE_ARG3 so_len = sizeof(peercred);
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to