mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
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.
This commit is contained in:
@@ -126,8 +126,8 @@ proc_exit(int code)
|
||||
else
|
||||
snprintf(gprofDirName, 32, "gprof/%d", (int) getpid());
|
||||
|
||||
mkdir("gprof", 0777);
|
||||
mkdir(gprofDirName, 0777);
|
||||
mkdir("gprof", S_IRWXU | S_IRWXG | S_IRWXO);
|
||||
mkdir(gprofDirName, S_IRWXU | S_IRWXG | S_IRWXO);
|
||||
chdir(gprofDirName);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user