Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
32be7207
Commit
32be7207
authored
May 16, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert kerberos code breakage.
parent
9ea764a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-auth.c
+3
-3
No files found.
src/interfaces/libpq/fe-auth.c
View file @
32be7207
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.7
7 2003/05/15 16:35:30 momjian
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.7
8 2003/05/16 04:58:03 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -386,10 +386,10 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
...
@@ -386,10 +386,10 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
/*
/*
* libpq uses a non-blocking socket. But kerberos needs a blocking
* libpq uses a non-blocking socket. But kerberos needs a blocking
* socket, and we have to block somehow to do mutual authentication
* 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
);
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
,
snprintf
(
PQerrormsg
,
PQERRORMSG_LENGTH
,
libpq_gettext
(
"could not set socket to blocking mode: %s
\n
"
),
strerror
(
errno
));
libpq_gettext
(
"could not set socket to blocking mode: %s
\n
"
),
strerror
(
errno
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment