Обсуждение: [COMMITTERS] pgsql: Fix saving and restoring umask

Поиск
Список
Период
Сортировка

[COMMITTERS] pgsql: Fix saving and restoring umask

От
Peter Eisentraut
Дата:
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_2_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2eb84e54a25098618724ee633fbad78d5e417489

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