deal with umask only if we really need to for mkstemp
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 11 Apr 2014 09:22:10 +0000 (11:22 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 11 Apr 2014 09:22:10 +0000 (11:22 +0200)
commit230e69d718f761a39ee3ee057938dcd0264af74f
treeb88edd6584609cb63343d78c74c9dbda29c089fa
parent21ba8115c873ae4085770e4bf0bed765e0e099a6
deal with umask only if we really need to for mkstemp

As the comment actually says: open() does the umask dance by itself, so
we don't need to do it for it. We have to do it after mkstemp in Atomic
though, so move it into the if.

Also removes the "micro-optimisation" "FilePermissions == 600" as it
doesn't trigger at the moment anyway as 600 != 0600.
apt-pkg/contrib/fileutl.cc