(mode_t) 0077 -> S_IRWXG|S_IRWXO

From: Alfred Perlstein <bright(at)wintelcom(dot)net>
To: pgsql-patches(at)hub(dot)org
Subject: (mode_t) 0077 -> S_IRWXG|S_IRWXO
Date: 2000-09-02 09:17:46
Message-ID: 20000902021746.S18862@fw.wintelcom.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)wintelcom(dot)net|alfred(at)freebsd(dot)org]
"I have the heart of a child; I keep it in a jar on my desk."

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2000-09-02 16:37:56 Re: Important 7.0.* fix to ensure buffers are released
Previous Message t-ishii 2000-09-02 08:14:33 Re: Important 7.0.* fix to ensure buffers are released