]> granicus.if.org Git - postgresql/commit
Fix saving and restoring umask
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 22 Sep 2017 20:50:59 +0000 (16:50 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 23 Sep 2017 14:05:28 +0000 (10:05 -0400)
commit9bf04994697dd094032d08682a25cbba7aba523f
treef1b0808a5620cc1ad7f20f279705ded076f21732
parentdbd6099fbc7783aa167eebc15a0688a613e16635
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.
src/backend/commands/copy.c
src/backend/libpq/be-fsstubs.c