]> 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:40 +0000 (10:05 -0400)
commite0f5710c5e8b9502ac8bcd821d3418053ed38f7a
treee9a597ffe1ce6ea8fe20a9a3b66e23475fa284e0
parent2020f90bf6753dea790caa7dd9983b6edd5b17c5
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