* subversion/libsvn_subr/io.c   (svn_io_open_unique_file3): Leave tempfile permissions at 0600 on UNIX    if a system-wide temporary directory is being used. We assume that    callers that pass in a dirpath are not using a system temp dir,    while those that just pass NULL are using a system temp dir.    The goal is to prevent leaking sensitive data into tempfiles that are    readable by other users. While here, make all related #ifdef expressions    match up.
* subversion/libsvn_subr/io.c
  (svn_io_open_unique_file3): Leave tempfile permissions at 0600 on UNIX
   if a system-wide temporary directory is being used. We assume that
   callers that pass in a dirpath are not using a system temp dir,
   while those that just pass NULL are using a system temp dir.
   The goal is to prevent leaking sensitive data into tempfiles that are
   readable by other users. While here, make all related #ifdef expressions
   match up.

Found by: danielsh
(the tempfile data leak)

Suggested by: rhuijben
(the dirpath == NULL heuristic)

jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion