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

Commitfd3c4b2

Browse files
committed
Add most of Neil Conway's cleanups.
1 parent840deab commitfd3c4b2

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

‎src/backend/libpq/auth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.83 2002/08/18 03:03:25 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.84 2002/08/27 15:15:22 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -809,7 +809,7 @@ recv_and_check_password_packet(Port *port)
809809
returnSTATUS_EOF;
810810
}
811811

812-
/* Do not echofailedpassword to logs, for security. */
812+
/* Do not echo password to logs, for security. */
813813
elog(DEBUG5,"received password packet");
814814

815815
result=md5_crypt_verify(port,port->user,buf.data);

‎src/include/libpq/pqcomm.h

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
1010
* Portions Copyright (c) 1994, Regents of the University of California
1111
*
12-
* $Id: pqcomm.h,v 1.66 2002/08/18 03:03:26 momjian Exp $
12+
* $Id: pqcomm.h,v 1.67 2002/08/27 15:15:23 momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -106,10 +106,18 @@ typedef uint32 PacketLen;
106106

107107
/*
108108
* Startup message parameters sizes. These must not be changed without changing
109-
* theprotcol version. These are all strings that are '\0' terminated only if
109+
* theprotocol version. These are all strings that are '\0' terminated only if
110110
* there is room.
111111
*/
112112

113+
/*
114+
* FIXME: remove the fixed size limitations on database & user name, use
115+
* variable length fields instead. The actual values will still be
116+
* limited by NAMEDATALEN, but this will at least allow changing
117+
* NAMEDATALEN to increase database & user name limits without changing
118+
* the protocol. -neilc, 2002/08/27
119+
*/
120+
113121
/* These should all be of near-unlimited length, perhap 10k */
114122
#defineSM_DATABASE64
115123
/* SM_USER should be the same size as the others. bjm 2002-06-02 */
@@ -120,7 +128,7 @@ typedef uint32 PacketLen;
120128
#defineSM_UNUSED64
121129
#defineSM_TTY64
122130

123-
typedefuint32ProtocolVersion;/* Fe/Be protocol versionnr. */
131+
typedefuint32ProtocolVersion;/* Fe/Be protocol versionnumber */
124132

125133
typedefstructStartupPacket
126134
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp