Skip site navigation (1) Skip section navigation (2)

(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 (view raw or flat)
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."

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group