I found this issue when testing Simo's patches.
The DP was sending the reply in a format the responder did not expect,
so the responder always failed to parse the message.
Fixes https://fedorahosted.org/sssd/ticket/1457
The permissions are later set with chmod() to the final values after
it's moved to the real filename, so this is safe.