Fix `puttygen-unix-perms': f_open(), PuTTY's wrapper on fopen, now
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 9 Jan 2007 18:14:30 +0000 (18:14 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 9 Jan 2007 18:14:30 +0000 (18:14 +0000)
commitc6940f12e2ad6ba778324f50b9a779db36238518
tree24726f9afbb21a351c53c2d3f4d5bbf032d9c4b4
parent7bccf0fe85dabc44d168fd2f42f458911e7c4d98
Fix `puttygen-unix-perms': f_open(), PuTTY's wrapper on fopen, now
takes a third argument which is TRUE if the file is being opened for
writing and wants to be created in such a way that it's readable
only to the owner. This is used when saving private keys.

While I'm here, I also use this option when writing session logs, on
the general principle that they probably contain _something_
sensitive.

The new argument is only supported on Unix, for the moment. (I think
writing owner-accessible-only files is the default on Windows.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@7084 cda61777-01e9-0310-a592-d414129be87e
cmdgen.c
import.c
logging.c
mac/macmisc.c
mac/macstuff.h
sshpubk.c
unix/unix.h
unix/uxmisc.c
windows/winstuff.h