Restrict file mode creation mask during tmpfile().

Noah Misch <noah@leadboat.com>

Commit: 5dc49efe9012793110ef5dab9a9a1a7730a70e3f
Author: Noah Misch <noah@leadboat.com>
Date: 2015-09-21T00:44:23Z
Releases: 9.1.19
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