fix for krb5 breakage - Mailing list pgsql-patches

From Joe Conway
Subject fix for krb5 breakage
Date
Msg-id 3EC46EDF.2070400@joeconway.com
Whole thread Raw
List pgsql-patches
Here's a patch for the krb5 breakage I referred to on HACKERS. Please apply.

Thanks,

Joe
Index: src/interfaces/libpq/fe-auth.c
===================================================================
RCS file: /opt/src/cvs/pgsql-server/src/interfaces/libpq/fe-auth.c,v
retrieving revision 1.77
diff -c -r1.77 fe-auth.c
*** src/interfaces/libpq/fe-auth.c    15 May 2003 16:35:30 -0000    1.77
--- src/interfaces/libpq/fe-auth.c    16 May 2003 04:50:53 -0000
***************
*** 389,395 ****
       * anyway. So we temporarily make it blocking.  Win32 doesn't support this.
       */
      flags = fcntl(sock, F_GETFL);
!     if (flags < 0 || fcntl(sock, F_SETFL, flags & ~O_NONBLOCK)))
      {
          snprintf(PQerrormsg, PQERRORMSG_LENGTH,
                   libpq_gettext("could not set socket to blocking mode: %s\n"), strerror(errno));
--- 389,395 ----
       * anyway. So we temporarily make it blocking.  Win32 doesn't support this.
       */
      flags = fcntl(sock, F_GETFL);
!     if (flags < 0 || fcntl(sock, F_SETFL, flags & ~O_NONBLOCK))
      {
          snprintf(PQerrormsg, PQERRORMSG_LENGTH,
                   libpq_gettext("could not set socket to blocking mode: %s\n"), strerror(errno));

pgsql-patches by date:

Previous
From: Sean Chittenden
Date:
Subject: Removal of krb4 support...
Next
From: Joe Conway
Date:
Subject: tablefunc bugfix (was Re: [HACKERS] Heads up: 7.3.3 this Wednesday)