Original coding of pg_regress.c made the results and log directories
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Jul 2006 15:37:19 +0000 (15:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Jul 2006 15:37:19 +0000 (15:37 +0000)
with restrictive permissions, which was not the behavior of the shell
script and doesn't seem very desirable.  Use the umask setting instead.

src/test/regress/pg_regress.c

index 88b08edb34a86d954f8e4bf23d66b43588315ff0..b80531a22af7ce69b1304ef81f7ff882346e7bb7 100644 (file)
@@ -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));