aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-12-10 17:35:33 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2010-12-10 17:35:33 -0500
commit04f4e10cfc158239ca00a6ed6a84428c7acb1e6d (patch)
treeae472ab34aa4121a81f252bfc2ee14aea9fdaee7 /src/backend/access/transam/xlog.c
parent244407a7103498d687c8e4ea96b83044f95f0893 (diff)
downloadpostgresql-04f4e10cfc158239ca00a6ed6a84428c7acb1e6d.tar.gz
postgresql-04f4e10cfc158239ca00a6ed6a84428c7acb1e6d.zip
Use symbolic names not octal constants for file permission flags.
Purely cosmetic patch to make our coding standards more consistent --- we were doing symbolic some places and octal other places. This patch fixes all C-coded uses of mkdir, chmod, and umask. There might be some other calls I missed. Inconsistency noted while researching tablespace directory permissions issue.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 5288b7fb3d4..49764581049 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -3451,7 +3451,7 @@ ValidateXLOGDirectoryStructure(void)
{
ereport(LOG,
(errmsg("creating missing WAL directory \"%s\"", path)));
- if (mkdir(path, 0700) < 0)
+ if (mkdir(path, S_IRWXU) < 0)
ereport(FATAL,
(errmsg("could not create missing directory \"%s\": %m",
path)));