Thread: (mode_t) 0077 -> S_IRWXG|S_IRWXO

(mode_t) 0077 -> S_IRWXG|S_IRWXO

From
Alfred Perlstein
Date:
This ought to be ok right?

Index: src/backend/postmaster/postmaster.c
===================================================================
RCS file: /home/pgcvs/pgsql/src/backend/postmaster/postmaster.c,v
retrieving revision 1.158
diff -u -u -r1.158 postmaster.c
--- src/backend/postmaster/postmaster.c    2000/07/28 02:13:26    1.158
+++ src/backend/postmaster/postmaster.c    2000/07/31 02:22:39
@@ -325,7 +325,7 @@
      * for security, no dir or file created can be group or other
      * accessible
      */
-    umask((mode_t) 0077);
+    umask(S_IRWXG|S_IRWXO);

     MyProcPid = getpid();

--
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."