mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 21:31:20 +02:00
Fix SO_PEERCRED printf bug added with SCM_CREDS cleanup.
This commit is contained in:
parent
fe786448e7
commit
ca66b2370a
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.65 2001/08/21 00:33:27 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.66 2001/08/21 14:48:19 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -892,7 +892,7 @@ ident_unix(int sock, char *ident_user)
|
|||||||
if (pass == NULL)
|
if (pass == NULL)
|
||||||
{
|
{
|
||||||
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
|
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
|
||||||
"ident_unix: unknown local user with uid %d\n",
|
"ident_unix: unknown local user with uid %d\n", peercred.uid);
|
||||||
fputs(PQerrormsg, stderr);
|
fputs(PQerrormsg, stderr);
|
||||||
pqdebug("%s", PQerrormsg);
|
pqdebug("%s", PQerrormsg);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user