We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent119cf76 commitc86762aCopy full SHA for c86762a
src/test/ssl/ServerSetup.pm
@@ -43,20 +43,6 @@ sub copy_files
43
}
44
45
46
-# Perform chmod on a set of files, taking into account wildcards
47
-subchmod_files
48
-{
49
-my$mode =shift;
50
-my$file_expr =shift;
51
-
52
-my@all_files =glob$file_expr;
53
-foreachmy$file_entry (@all_files)
54
55
-chmod$mode,$file_entry
56
-ordie"Could not run chmod with mode$mode on$file_entry";
57
-}
58
59
60
subconfigure_test_server_for_ssl
61
{
62
my$tempdir =$_[0];
@@ -82,7 +68,7 @@ sub configure_test_server_for_ssl
82
68
# Copy all server certificates and keys, and client root cert, to the data dir
83
69
copy_files("ssl/server-*.crt","$tempdir/pgdata");
84
70
copy_files("ssl/server-*.key","$tempdir/pgdata");
85
-chmod_files(0600,"$tempdir/pgdata/server-*.key");
71
+chmod(0600,glob"$tempdir/pgdata/server-*.key")ordie$!;
86
72
copy_files("ssl/root+client_ca.crt","$tempdir/pgdata");
87
73
copy_files("ssl/root+client.crl","$tempdir/pgdata");
88
74