(mode_t) 0077 -> S_IRWXG|S_IRWXO - Mailing list pgsql-patches

From Alfred Perlstein
Subject (mode_t) 0077 -> S_IRWXG|S_IRWXO
Date
Msg-id 20000902021746.S18862@fw.wintelcom.net
Whole thread Raw
List pgsql-patches
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."

pgsql-patches by date:

Previous
From: Peter Mount
Date:
Subject: RE: Charset encoding patch to JDBC driver
Next
From: William Webber
Date:
Subject: JDBC: redundant String allocations removed