Restrict file mode creation mask during tmpfile().

Noah Misch <noah@leadboat.com>

Commit: ea218a2ba70d9f11f5a271728de26450a9b23d6c
Author: Noah Misch <noah@leadboat.com>
Date: 2015-09-21T00:42:55Z
Releases: 9.3.10
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