Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6c0f94f

Browse files
committed
Un-break initdb logic for commenting out IPv6 pg_hba.conf line.
1 parent d36aa67 commit 6c0f94f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bin/initdb/initdb.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* Portions Copyright (c) 1994, Regents of the University of California
4343
* Portions taken from FreeBSD.
4444
*
45-
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.183 2010/01/26 06:58:39 petere Exp $
45+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.184 2010/01/26 16:18:12 tgl Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -1215,14 +1215,14 @@ setup_config(void)
12151215
if (err != 0 ||
12161216
getaddrinfo("::1", NULL, &hints, &gai_result) != 0)
12171217
conflines = replace_token(conflines,
1218-
"host all all ::1",
1219-
"#host all all ::1");
1218+
"host all all ::1",
1219+
"#host all all ::1");
12201220
}
12211221
#else /* !HAVE_IPV6 */
12221222
/* If we didn't compile IPV6 support at all, always comment it out */
12231223
conflines = replace_token(conflines,
1224-
"host all all ::1",
1225-
"#host all all ::1");
1224+
"host all all ::1",
1225+
"#host all all ::1");
12261226
#endif /* HAVE_IPV6 */
12271227

12281228
/* Replace default authentication methods */

0 commit comments

Comments
 (0)