Skip to content

Commit 108871f

Browse files
committed
Fix write of pg_pwd file for multiple users. Broken recently by my
pg_hba.conf changes.
1 parent 31c775a commit 108871f

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy