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

Commit27c2729

Browse files
committed
Add \n to libpq print output where needed.
1 parent9550409 commit27c2729

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

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

Lines changed: 11 additions & 12 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.52 2001/08/1703:09:31 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.53 2001/08/1715:02:18 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -285,7 +285,7 @@ pg_krb5_init(char *PQerrormsg)
285285
if (retval)
286286
{
287287
snprintf(PQerrormsg,PQERRORMSG_LENGTH,
288-
"pg_krb5_init: krb5_init_context: %s",
288+
"pg_krb5_init: krb5_init_context: %s\n",
289289
error_message(retval));
290290
returnSTATUS_ERROR;
291291
}
@@ -294,7 +294,7 @@ pg_krb5_init(char *PQerrormsg)
294294
if (retval)
295295
{
296296
snprintf(PQerrormsg,PQERRORMSG_LENGTH,
297-
"pg_krb5_init: krb5_cc_default: %s",
297+
"pg_krb5_init: krb5_cc_default: %s\n",
298298
error_message(retval));
299299
krb5_free_context(pg_krb5_context);
300300
returnSTATUS_ERROR;
@@ -305,7 +305,7 @@ pg_krb5_init(char *PQerrormsg)
305305
if (retval)
306306
{
307307
snprintf(PQerrormsg,PQERRORMSG_LENGTH,
308-
"pg_krb5_init: krb5_cc_get_principal: %s",
308+
"pg_krb5_init: krb5_cc_get_principal: %s\n",
309309
error_message(retval));
310310
krb5_cc_close(pg_krb5_context,pg_krb5_ccache);
311311
krb5_free_context(pg_krb5_context);
@@ -316,7 +316,7 @@ pg_krb5_init(char *PQerrormsg)
316316
if (retval)
317317
{
318318
snprintf(PQerrormsg,PQERRORMSG_LENGTH,
319-
"pg_krb5_init: krb5_unparse_name: %s",
319+
"pg_krb5_init: krb5_unparse_name: %s\n",
320320
error_message(retval));
321321
krb5_free_principal(pg_krb5_context,pg_krb5_client);
322322
krb5_cc_close(pg_krb5_context,pg_krb5_ccache);
@@ -371,7 +371,7 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
371371
if (retval)
372372
{
373373
snprintf(PQerrormsg,PQERRORMSG_LENGTH,
374-
"pg_krb5_sendauth: krb5_sname_to_principal: %s",
374+
"pg_krb5_sendauth: krb5_sname_to_principal: %s\n",
375375
error_message(retval));
376376
returnSTATUS_ERROR;
377377
}
@@ -385,7 +385,7 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
385385
if (flags<0||fcntl(sock,F_SETFL, (long) (flags& ~O_NONBLOCK)))
386386
{
387387
snprintf(PQerrormsg,PQERRORMSG_LENGTH,
388-
libpq_gettext("could not set socket to blocking mode: %s"),strerror(errno));
388+
libpq_gettext("could not set socket to blocking mode: %s\n"),strerror(errno));
389389
krb5_free_principal(pg_krb5_context,server);
390390
returnSTATUS_ERROR;
391391
}
@@ -401,14 +401,13 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
401401
if (retval==KRB5_SENDAUTH_REJECTED&&err_ret)
402402
{
403403
snprintf(PQerrormsg,PQERRORMSG_LENGTH,
404-
libpq_gettext("Kerberos 5 authentication rejected: %*s"),
404+
libpq_gettext("Kerberos 5 authentication rejected: %*s\n"),
405405
err_ret->text.length,err_ret->text.data);
406406
}
407407
else
408408
{
409409
snprintf(PQerrormsg,PQERRORMSG_LENGTH,
410-
"krb5_sendauth: %s",
411-
error_message(retval));
410+
"krb5_sendauth: %s\n",error_message(retval));
412411
}
413412

414413
if (err_ret)
@@ -422,7 +421,7 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
422421
if (fcntl(sock,F_SETFL, (long)flags))
423422
{
424423
snprintf(PQerrormsg,PQERRORMSG_LENGTH,
425-
libpq_gettext("could not restore non-blocking mode on socket: %s"),
424+
libpq_gettext("could not restore non-blocking mode on socket: %s\n"),
426425
strerror(errno));
427426
ret=STATUS_ERROR;
428427
}
@@ -594,7 +593,7 @@ fe_setauthsvc(const char *name, char *PQerrormsg)
594593
if (i==n_authsvcs)
595594
{
596595
snprintf(PQerrormsg,PQERRORMSG_LENGTH,
597-
libpq_gettext("invalid authentication service name \"%s\", ignored"),
596+
libpq_gettext("invalid authentication service name \"%s\", ignored\n"),
598597
name);
599598
}
600599
return;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp