Restrict file mode creation mask during tmpfile().

Noah Misch <noah@leadboat.com>

Commit: 7496aba8085a21f8296f19b2e8f07e9723f946a5
Author: Noah Misch <noah@leadboat.com>
Date: 2015-09-21T00:42:50Z
Releases: 9.4.5
Restrict file mode creation mask during tmpfile().

Per Coverity.  Back-patch to 9.0 (all supported versions).

Michael Paquier, reviewed (in earlier versions) by Heikki Linnakangas.

Files

PathChange+/−
src/bin/pg_dump/pg_backup_tar.c modified +12 −0