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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use symbolic names not octal constants for file permission flags
Date: 2010-12-10 22:35:50
Message-ID: E1PRBZ8-0002Da-K4@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-12-11 00:43:17 pgsql: Move a couple of initdb's subroutines into src/port/.
Previous Message Tom Lane 2010-12-10 19:21:04 Re: pgsql: Reduce spurious Hot Standby conflicts from never-visible records

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2010-12-10 22:35:59 Re: ALTER EXTENSION ... UPGRADE;
Previous Message Dimitri Fontaine 2010-12-10 22:32:09 Re: ALTER EXTENSION ... UPGRADE;