From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: pg_upgrade: adjust umask() calls |
Date: | 2013-07-25 15:33:22 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | 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
------
REL9_3_STABLE
Modified Files
--------------
contrib/pg_upgrade/dump.c | 10 ++++++++++
contrib/pg_upgrade/exec.c | 11 +++--------
2 files changed, 13 insertions(+), 8 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2013-07-25 15:40:28 | pgsql: Fix configure probe for sys/ucred.h. |
Previous Message | Stephen Frost | 2013-07-25 14:02:38 | Re: pgsql: Add GET DIAGNOSTICS ... PG_CONTEXT in PL/PgSQL |