Use symbolic names not octal constants for file permission flags.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +1 −1 |
| src/backend/commands/copy.c | modified | +1 −1 |
| src/backend/commands/tablespace.c | modified | +1 −1 |
| src/backend/libpq/be-fsstubs.c | modified | +4 −3 |
| src/backend/postmaster/postmaster.c | modified | +2 −2 |
| src/backend/postmaster/syslogger.c | modified | +3 −3 |
| src/backend/storage/file/copydir.c | modified | +1 −1 |
| src/backend/storage/ipc/ipc.c | modified | +2 −2 |
| src/bin/initdb/initdb.c | modified | +8 −8 |
| src/bin/pg_ctl/pg_ctl.c | modified | +1 −1 |