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

Commit108871f

Browse files
committed
Fix write of pg_pwd file for multiple users. Broken recently by my
pg_hba.conf changes.
1 parent31c775a commit108871f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/commands/user.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.97 2002/04/26 19:29:47 tgl Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.98 2002/04/27 15:30:07 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -195,8 +195,7 @@ write_group_file(Relation urel, Relation grel)
195195
}
196196

197197
/* File format is:
198-
*"dbname""user1","user2","user3"
199-
* This matches pg_hba.conf.
198+
*"dbname""user1" "user2" "user3"
200199
*/
201200
if (first_user)
202201
{
@@ -335,6 +334,7 @@ write_user_file(Relation urel)
335334
fputs_quote(passwd,fp);
336335
fputs(" ",fp);
337336
fputs_quote(valuntil,fp);
337+
fputs("\n",fp);
338338

339339
pfree(passwd);
340340
pfree(valuntil);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp