Skip to content

Commit 8aab197

Browse files
committed
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.
1 parent 43c7937 commit 8aab197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/regress/pg_regress.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
1212
* Portions Copyright (c) 1994, Regents of the University of California
1313
*
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 $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -790,7 +790,7 @@ directory_exists(const char *dir)
790790
static void
791791
make_directory(const char *dir)
792792
{
793-
if (mkdir(dir, S_IRWXU) < 0)
793+
if (mkdir(dir, S_IRWXU | S_IRWXG | S_IRWXO) < 0)
794794
{
795795
fprintf(stderr, _("%s: could not create directory \"%s\": %s\n"),
796796
progname, dir, strerror(errno));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy