pgsql: pg_upgrade: adjust umask() calls - Mailing list pgsql-committers

From Bruce Momjian
Subject pgsql: pg_upgrade: adjust umask() calls
Date
Msg-id E1V2NXe-0003TP-O0@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
pg_upgrade:  adjust umask() calls
Since pg_upgrade -j on Windows uses threads, calling umask()
before/after opening a file via fopen_priv() is no longer possible, so
set umask() as we enter the thread-creating loop, and reset it on exit.
Also adjust internal fopen_priv() calls to just use fopen().
Backpatch to 9.3beta.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/76a7650c40efeeb35be7a60f27ce151ad4e473a2

Modified Files
--------------
contrib/pg_upgrade/dump.c |   10 ++++++++++
contrib/pg_upgrade/exec.c |   11 +++--------
2 files changed, 13 insertions(+), 8 deletions(-)


pgsql-committers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: pgsql: Add GET DIAGNOSTICS ... PG_CONTEXT in PL/PgSQL
Next
From: Bruce Momjian
Date:
Subject: pgsql: pg_upgrade: adjust umask() calls