Restrict file mode creation mask during tmpfile().

Noah Misch <noah@leadboat.com>

Commit: 1be9d65e17abc6215a6faae9bc3f714dd3d040b6
Author: Noah Misch <noah@leadboat.com>
Date: 2015-09-21T00:42:44Z
Releases: 9.5.0
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