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

Commit6bb5134

Browse files
committed
Ensure that the test postmaster started by 'make check' listens to as
few 'listen_addresses' as possible --- on most systems, none at all,just the Unix socket. This avoids spurious check failures due to bogusDNS setups, and is probably a good idea from a security standpoint anyway.Per trouble report from Jean-GÅrard Pailloncy.
1 parentd3d0071 commit6bb5134

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/test/regress/pg_regress.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.51 2004/12/1215:34:15 petere Exp $
2+
# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.52 2005/01/1216:19:51 tgl Exp $
33

44
me=`basename$0`
55
:${TMPDIR=/tmp}
@@ -417,7 +417,11 @@ then
417417

418418
message"starting postmaster"
419419
["$debug"= yes ]&& postmaster_options="$postmaster_options -d 5"
420-
["$unix_sockets"= no ]&& postmaster_options="$postmaster_options -i"
420+
if ["$unix_sockets"= no ];then
421+
postmaster_options="$postmaster_options -c listen_addresses=$hostname"
422+
else
423+
postmaster_options="$postmaster_options -c listen_addresses=''"
424+
fi
421425
"$bindir/postmaster" -D"$PGDATA" -F$postmaster_options>"$LOGDIR/postmaster.log"2>&1&
422426
postmaster_pid=$!
423427

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp