diff options
author | Tom Lane | 2010-12-10 22:35:33 +0000 |
---|---|---|
committer | Tom Lane | 2010-12-10 22:35:33 +0000 |
commit | 04f4e10cfc158239ca00a6ed6a84428c7acb1e6d (patch) | |
tree | ae472ab34aa4121a81f252bfc2ee14aea9fdaee7 /src/backend/commands/tablespace.c | |
parent | 244407a7103498d687c8e4ea96b83044f95f0893 (diff) |
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/commands/tablespace.c')
-rw-r--r-- | src/backend/commands/tablespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c index 5ba0f1ca9da..cd80c811a92 100644 --- a/src/backend/commands/tablespace.c +++ b/src/backend/commands/tablespace.c @@ -552,7 +552,7 @@ create_tablespace_directories(const char *location, const Oid tablespaceoid) * Attempt to coerce target directory to safe permissions. If this fails, * it doesn't exist or has the wrong owner. */ - if (chmod(location, 0700) != 0) + if (chmod(location, S_IRWXU) != 0) { if (errno == ENOENT) ereport(ERROR, |