diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-07-27 15:37:19 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-07-27 15:37:19 +0000 |
commit | 8aab1978406b4f141856da2ebf749209d4b8ddb7 (patch) | |
tree | f31b7485baff8af90ea2a903ec5da22aff7caba4 /src | |
parent | 43c79378c85cb0ac51c1a445655c2262dac7d46a (diff) | |
download | postgresql-8aab1978406b4f141856da2ebf749209d4b8ddb7.tar.gz postgresql-8aab1978406b4f141856da2ebf749209d4b8ddb7.zip |
Original coding of pg_regress.c made the results and log directories
with restrictive permissions, which was not the behavior of the shell
script and doesn't seem very desirable. Use the umask setting instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/regress/pg_regress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c index 3db38fd17d9..abb6131a387 100644 --- a/src/test/regress/pg_regress.c +++ b/src/test/regress/pg_regress.c @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.15 2006/07/25 03:51:22 tgl Exp $ + * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.16 2006/07/27 15:37:19 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -790,7 +790,7 @@ directory_exists(const char *dir) static void make_directory(const char *dir) { - if (mkdir(dir, S_IRWXU) < 0) + if (mkdir(dir, S_IRWXU | S_IRWXG | S_IRWXO) < 0) { fprintf(stderr, _("%s: could not create directory \"%s\": %s\n"), progname, dir, strerror(errno)); |