[COMMITTERS] pgsql: Fix saving and restoring umask - Mailing list pgsql-committers

From Peter Eisentraut
Subject [COMMITTERS] pgsql: Fix saving and restoring umask
Date
Msg-id E1dvlDw-0002sA-V0@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix saving and restoring umask

In two cases, we set a different umask for some piece of code and
restore it afterwards.  But if the contained code errors out, the umask
is not restored.  So add TRY/CATCH blocks to fix that.

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e0f5710c5e8b9502ac8bcd821d3418053ed38f7a

Modified Files
--------------
src/backend/commands/copy.c    | 11 ++++++++++-
src/backend/libpq/be-fsstubs.c | 13 +++++++++++--
2 files changed, 21 insertions(+), 3 deletions(-)


--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: [COMMITTERS] pgsql: Test BRIN autosummarization
Next
From: Peter Eisentraut
Date:
Subject: Re: [COMMITTERS] pgsql: Fix saving and restoring umask