File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/test/libpq_encryption/t Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 135135 || die " copying server.crt: $! " ;
136136 copy " $certdir /server-cn-only.key" , " $pgdata /server.key"
137137 || die " copying server.key: $! " ;
138- chmod (0600, " $pgdata /server.key" );
138+ chmod (0600, " $pgdata /server.key" )
139+ or die " failed to change permissions on server keys: $! " ;
139140
140141 # Start with SSL disabled.
141142 $node -> append_conf(' postgresql.conf' , " ssl = off\n " );
@@ -181,7 +182,7 @@ BEGIN
181182
182183# Only accept SSL connections from $servercidr. Our tests don't depend on this
183184# but seems best to keep it as narrow as possible for security reasons.
184- open my $hba , ' >' , " $pgdata /pg_hba.conf" ;
185+ open my $hba , ' >' , " $pgdata /pg_hba.conf" or die $! ;
185186print $hba qq{
186187# TYPE DATABASE USER ADDRESS METHOD OPTIONS
187188local postgres localuser trust
You can’t perform that action at this time.
0 commit comments