Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit32be720

Browse files
committed
Revert kerberos code breakage.
1 parent9ea764a commit32be720

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/interfaces/libpq/fe-auth.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.77 2003/05/15 16:35:30 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.78 2003/05/16 04:58:03 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -386,10 +386,10 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
386386
/*
387387
* libpq uses a non-blocking socket. But kerberos needs a blocking
388388
* socket, and we have to block somehow to do mutual authentication
389-
* anyway. So we temporarily make it blocking. Win32 doesn't support this.
389+
* anyway. So we temporarily make it blocking.
390390
*/
391391
flags=fcntl(sock,F_GETFL);
392-
if (flags<0||fcntl(sock,F_SETFL,flags& ~O_NONBLOCK)))
392+
if (flags<0||fcntl(sock,F_SETFL,(long) (flags& ~O_NONBLOCK)))
393393
{
394394
snprintf(PQerrormsg,PQERRORMSG_LENGTH,
395395
libpq_gettext("could not set socket to blocking mode: %s\n"),strerror(errno));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp