]> 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:04:55 +0000 (10:04 -0400)
commitacae13faabc505146817f4834a8c9e9b43788312
tree9f41e6f77dadd4ce4bd4ac782569f6d032fd4a6c
parent89f02e17a6ac81bbc78ea92f2ead06d8816ee297
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