Thread: pgsql: Use symbolic names not octal constants for file permission flags

pgsql: Use symbolic names not octal constants for file permission flags

From
Tom Lane
Date:
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.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=04f4e10cfc158239ca00a6ed6a84428c7acb1e6d

Modified Files
--------------
src/backend/access/transam/xlog.c   |    2 +-
src/backend/commands/copy.c         |    2 +-
src/backend/commands/tablespace.c   |    2 +-
src/backend/libpq/be-fsstubs.c      |    7 ++++---
src/backend/postmaster/postmaster.c |    4 ++--
src/backend/postmaster/syslogger.c  |    6 +++---
src/backend/storage/file/copydir.c  |    2 +-
src/backend/storage/ipc/ipc.c       |    4 ++--
src/bin/initdb/initdb.c             |   16 ++++++++--------
src/bin/pg_ctl/pg_ctl.c             |    2 +-
10 files changed, 24 insertions(+), 23 deletions(-)