diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-16 04:58:03 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-16 04:58:03 +0000 |
commit | 32be7207aafdba20ebf615cab50bdadf7c61f272 (patch) | |
tree | 7c4754a67f51c571aa80709f6eb3244be7e781b5 /src/interfaces/libpq/fe-auth.c | |
parent | 9ea764a0dc84f83074330f79e8f7cee45b696241 (diff) | |
download | postgresql-32be7207aafdba20ebf615cab50bdadf7c61f272.tar.gz postgresql-32be7207aafdba20ebf615cab50bdadf7c61f272.zip |
Revert kerberos code breakage.
Diffstat (limited to 'src/interfaces/libpq/fe-auth.c')
-rw-r--r-- | src/interfaces/libpq/fe-auth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index 07c059f559b..93fd5ca5810 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -10,7 +10,7 @@ * exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes). * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.77 2003/05/15 16:35:30 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.78 2003/05/16 04:58:03 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -386,10 +386,10 @@ pg_krb5_sendauth(char *PQerrormsg, int sock, /* * libpq uses a non-blocking socket. But kerberos needs a blocking * socket, and we have to block somehow to do mutual authentication - * anyway. So we temporarily make it blocking. Win32 doesn't support this. + * anyway. So we temporarily make it blocking. */ flags = fcntl(sock, F_GETFL); - if (flags < 0 || fcntl(sock, F_SETFL, flags & ~O_NONBLOCK))) + if (flags < 0 || fcntl(sock, F_SETFL, (long) (flags & ~O_NONBLOCK))) { snprintf(PQerrormsg, PQERRORMSG_LENGTH, libpq_gettext("could not set socket to blocking mode: %s\n"), strerror(errno)); |