]> 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:03:36 +0000 (10:03 -0400)
commita1f30ecc5115b0186ad02ec76f75296906813d26
tree064b8c5ca75850801e61326fc44b9e51a943476d
parente25f4401dad7829463efff1f4655f2c6d6b076ff
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