Protocol cleanup from Phil.
This commit is contained in:
parent
862927f443
commit
7c3dc8f772
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.21 1998/01/26 01:41:04 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.22 1998/01/27 03:11:41 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -72,7 +72,7 @@ static int map_old_to_new(Port *port, UserAuth old, int status);
|
||||||
* unauthenticated connections.)
|
* unauthenticated connections.)
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
pg_krb4_recvauth(Port *)
|
pg_krb4_recvauth(Port *port)
|
||||||
{
|
{
|
||||||
long krbopts = 0; /* one-way authentication */
|
long krbopts = 0; /* one-way authentication */
|
||||||
KTEXT_ST clttkt;
|
KTEXT_ST clttkt;
|
||||||
|
@ -117,7 +117,7 @@ pg_krb4_recvauth(Port *)
|
||||||
{
|
{
|
||||||
sprintf(PQerrormsg,
|
sprintf(PQerrormsg,
|
||||||
"pg_krb4_recvauth: name \"%s\" != \"%s\"\n",
|
"pg_krb4_recvauth: name \"%s\" != \"%s\"\n",
|
||||||
port->username,
|
port->user,
|
||||||
auth_data.pname);
|
auth_data.pname);
|
||||||
fputs(PQerrormsg, stderr);
|
fputs(PQerrormsg, stderr);
|
||||||
pqdebug("%s", PQerrormsg);
|
pqdebug("%s", PQerrormsg);
|
||||||
|
@ -296,7 +296,7 @@ pg_krb5_recvauth(Port *port)
|
||||||
{
|
{
|
||||||
sprintf(PQerrormsg,
|
sprintf(PQerrormsg,
|
||||||
"pg_krb5_recvauth: name \"%s\" != \"%s\"\n",
|
"pg_krb5_recvauth: name \"%s\" != \"%s\"\n",
|
||||||
port->username, kusername);
|
port->user, kusername);
|
||||||
fputs(PQerrormsg, stderr);
|
fputs(PQerrormsg, stderr);
|
||||||
pqdebug("%s", PQerrormsg);
|
pqdebug("%s", PQerrormsg);
|
||||||
pfree(kusername);
|
pfree(kusername);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.70 1998/01/26 01:41:15 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.71 1998/01/27 03:11:46 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
*
|
*
|
||||||
|
@ -1162,14 +1162,14 @@ DoExec(Port *port)
|
||||||
argbuf[(2 * ARGV_SIZE)] = '\0';
|
argbuf[(2 * ARGV_SIZE)] = '\0';
|
||||||
split_opts(av, &ac, argbuf);
|
split_opts(av, &ac, argbuf);
|
||||||
|
|
||||||
StrNCpy(dbbuf, port->database, ARGV_SIZE);
|
|
||||||
av[ac++] = dbbuf;
|
|
||||||
|
|
||||||
/* Tell the backend what protocol the frontend is using. */
|
/* Tell the backend what protocol the frontend is using. */
|
||||||
|
|
||||||
sprintf(protobuf, "-v %u", port->proto);
|
sprintf(protobuf, "-v %u", port->proto);
|
||||||
av[ac++] = protobuf;
|
av[ac++] = protobuf;
|
||||||
|
|
||||||
|
StrNCpy(dbbuf, port->database, ARGV_SIZE);
|
||||||
|
av[ac++] = dbbuf;
|
||||||
|
|
||||||
av[ac] = (char *) NULL;
|
av[ac] = (char *) NULL;
|
||||||
|
|
||||||
if (DebugLvl > 1)
|
if (DebugLvl > 1)
|
||||||
|
|
Loading…
Reference in New Issue