pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: a3nm.postgresql@a3nm.net
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15596: Folders created with wrong permissions when installing an extension with a non-default umask
Date: Wed, 16 Jan 2019 21:33:41 -0500
Message-ID: <3966.1547692421@sss.pgh.pa.us> (raw)
In-Reply-To: <15596-a7991ddfd29b90d0@postgresql.org>
References: <15596-a7991ddfd29b90d0@postgresql.org>

=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> However, the umask of my user is 077, so these "mkdir -p" invocations are
> creating folders that can only be read by root, which is not the intended
> behavior.

So ... don't do that.

> Would it be possible to fix this by redefining MKDIR_P="mkdir -m 0755 -p" in
> pgxs.mk so that the mkdir invocations create the folders with the right
> permissions, in line with the "install" invocations? Thanks!

I think that would be a pretty bad idea, because it would break things
for packagers who have their own ideas about what the directory
permissions ought to be.

You can, of course, enforce your own ideas on the make run with something
like (untested)

	make MKDIR_P="mkdir -m 0755 -p" install

			regards, tom lane




view thread (3+ messages)  latest in thread

Message-ID: <3966.1547692421@sss.pgh.pa.us>
Permalink:  ../3966.1547692421@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3966.1547692421@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, a3nm.postgresql@a3nm.net
  Subject: Re: BUG #15596: Folders created with wrong permissions when installing an extension with a non-default umask
  In-Reply-To: <3966.1547692421@sss.pgh.pa.us>
  References: <15596-a7991ddfd29b90d0@postgresql.org> <3966.1547692421@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox