]> git.ipfire.org Git - thirdparty/pdns.git/commit
pdnsutil: Set a proper umask before writing the temporary zone file 13091/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 1 Aug 2023 11:56:03 +0000 (13:56 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 1 Aug 2023 12:00:25 +0000 (14:00 +0200)
commitca478cf8195bf996f7c9389caa9ae4e25fc0177c
tree3746b410fa744963d08616f0c2c7877d4206056b
parent32b355c43a2dce77e500f02264b7a4c38fcd4d69
pdnsutil: Set a proper umask before writing the temporary zone file

This does not matter on Linux where mkstemp ensures that "the file
is created with permissions 0600 that is, read plus write for owner
only" but it might on other systems as POSIX does not require mkstemp
to do so.
Reported by Coverity as CID 1501165.
pdns/pdnsutil.cc