Re: pgsql: Fix saving and restoring umask

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Fix saving and restoring umask
Date: 2017-09-22 21:48:31
Message-ID: 15275.1506116911@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> 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.

Doesn't that need to be back-patched?

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2017-09-23 12:18:41 pgsql: Test BRIN autosummarization
Previous Message Peter Eisentraut 2017-09-22 21:17:32 pgsql: Fix saving and restoring umask