|
11 | 11 | * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
12 | 12 | * Portions Copyright (c) 1994, Regents of the University of California
|
13 | 13 | *
|
14 |
| - * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.15 2006/07/25 03:51:22 tgl Exp $ |
| 14 | + * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.16 2006/07/27 15:37:19 tgl Exp $ |
15 | 15 | *
|
16 | 16 | *-------------------------------------------------------------------------
|
17 | 17 | */
|
@@ -790,7 +790,7 @@ directory_exists(const char *dir)
|
790 | 790 | staticvoid
|
791 | 791 | make_directory(constchar*dir)
|
792 | 792 | {
|
793 |
| -if (mkdir(dir,S_IRWXU)<0) |
| 793 | +if (mkdir(dir,S_IRWXU |S_IRWXG |S_IRWXO)<0) |
794 | 794 | {
|
795 | 795 | fprintf(stderr,_("%s: could not create directory \"%s\": %s\n"),
|
796 | 796 | progname,dir,strerror(errno));
|
|