pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Fix saving and restoring umask
9+ messages / 3 participants
[nested] [flat]
* pgsql: Fix saving and restoring umask
@ 2017-09-22 21:17 Peter Eisentraut <peter_e@gmx.net>
2017-09-22 21:48 ` Re: pgsql: Fix saving and restoring umask Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 9+ messages in thread
From: Peter Eisentraut @ 2017-09-22 21:17 UTC (permalink / raw)
To: pgsql-committers
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.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/aa6b7b72d9bcf967cbccd378de4bc5cef33d02f9
Modified Files
--------------
src/backend/commands/copy.c | 11 ++++++++++-
src/backend/libpq/be-fsstubs.c | 13 +++++++++++--
2 files changed, 21 insertions(+), 3 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Fix saving and restoring umask
2017-09-22 21:17 pgsql: Fix saving and restoring umask Peter Eisentraut <peter_e@gmx.net>
@ 2017-09-22 21:48 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-09-23 14:17 ` Re: pgsql: Fix saving and restoring umask Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
0 siblings, 1 reply; 9+ messages in thread
From: Tom Lane @ 2017-09-22 21:48 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-committers
Peter Eisentraut <peter_e@gmx.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
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Fix saving and restoring umask
2017-09-22 21:17 pgsql: Fix saving and restoring umask Peter Eisentraut <peter_e@gmx.net>
2017-09-22 21:48 ` Re: pgsql: Fix saving and restoring umask Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-09-23 14:17 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
0 siblings, 0 replies; 9+ messages in thread
From: Peter Eisentraut @ 2017-09-23 14:17 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers
On 9/22/17 17:48, Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.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?
done
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Fix saving and restoring umask
@ 2017-09-23 14:16 Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 9+ messages in thread
From: Peter Eisentraut @ 2017-09-23 14:16 UTC (permalink / raw)
To: pgsql-committers
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.
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/3d7f11a0fabb038ce5c630b87dfadd8b625347fe
Modified Files
--------------
src/backend/commands/copy.c | 11 ++++++++++-
src/backend/libpq/be-fsstubs.c | 13 +++++++++++--
2 files changed, 21 insertions(+), 3 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Fix saving and restoring umask
@ 2017-09-23 14:16 Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 9+ messages in thread
From: Peter Eisentraut @ 2017-09-23 14:16 UTC (permalink / raw)
To: pgsql-committers
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.
Branch
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/a1f30ecc5115b0186ad02ec76f75296906813d26
Modified Files
--------------
src/backend/commands/copy.c | 11 ++++++++++-
src/backend/libpq/be-fsstubs.c | 13 +++++++++++--
2 files changed, 21 insertions(+), 3 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Fix saving and restoring umask
@ 2017-09-23 14:16 Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 9+ messages in thread
From: Peter Eisentraut @ 2017-09-23 14:16 UTC (permalink / raw)
To: pgsql-committers
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.
Branch
------
REL9_5_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/acae13faabc505146817f4834a8c9e9b43788312
Modified Files
--------------
src/backend/commands/copy.c | 11 ++++++++++-
src/backend/libpq/be-fsstubs.c | 13 +++++++++++--
2 files changed, 21 insertions(+), 3 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Fix saving and restoring umask
@ 2017-09-23 14:16 Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 9+ messages in thread
From: Peter Eisentraut @ 2017-09-23 14:16 UTC (permalink / raw)
To: pgsql-committers
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.
Branch
------
REL9_4_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/9bf04994697dd094032d08682a25cbba7aba523f
Modified Files
--------------
src/backend/commands/copy.c | 11 ++++++++++-
src/backend/libpq/be-fsstubs.c | 13 +++++++++++--
2 files changed, 21 insertions(+), 3 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Fix saving and restoring umask
@ 2017-09-23 14:16 Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 9+ messages in thread
From: Peter Eisentraut @ 2017-09-23 14:16 UTC (permalink / raw)
To: pgsql-committers
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.
Branch
------
REL9_3_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/e0f5710c5e8b9502ac8bcd821d3418053ed38f7a
Modified Files
--------------
src/backend/commands/copy.c | 11 ++++++++++-
src/backend/libpq/be-fsstubs.c | 13 +++++++++++--
2 files changed, 21 insertions(+), 3 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Fix saving and restoring umask
@ 2017-09-23 14:16 Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 9+ messages in thread
From: Peter Eisentraut @ 2017-09-23 14:16 UTC (permalink / raw)
To: pgsql-committers
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.
Branch
------
REL9_2_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/2eb84e54a25098618724ee633fbad78d5e417489
Modified Files
--------------
src/backend/commands/copy.c | 11 ++++++++++-
src/backend/libpq/be-fsstubs.c | 13 +++++++++++--
2 files changed, 21 insertions(+), 3 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 9+ messages in thread
end of thread, other threads:[~2017-09-23 14:17 UTC | newest]
Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-09-22 21:17 pgsql: Fix saving and restoring umask Peter Eisentraut <peter_e@gmx.net>
2017-09-22 21:48 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-09-23 14:17 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2017-09-23 14:16 pgsql: Fix saving and restoring umask Peter Eisentraut <peter_e@gmx.net>
2017-09-23 14:16 pgsql: Fix saving and restoring umask Peter Eisentraut <peter_e@gmx.net>
2017-09-23 14:16 pgsql: Fix saving and restoring umask Peter Eisentraut <peter_e@gmx.net>
2017-09-23 14:16 pgsql: Fix saving and restoring umask Peter Eisentraut <peter_e@gmx.net>
2017-09-23 14:16 pgsql: Fix saving and restoring umask Peter Eisentraut <peter_e@gmx.net>
2017-09-23 14:16 pgsql: Fix saving and restoring umask Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox