Restrict file mode creation mask during tmpfile().

Noah Misch <noah@leadboat.com>

Commit: c94b65f677875140b019bec1f7dc07bd2e14d45b
Author: Noah Misch <noah@leadboat.com>
Date: 2015-09-21T00:43:47Z
Releases: 9.2.14
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