]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
Fix `puttygen-unix-perms': f_open(), PuTTY's wrapper on fopen, now
authorSimon Tatham <anakin@pobox.com>
Tue, 9 Jan 2007 18:14:30 +0000 (18:14 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 9 Jan 2007 18:14:30 +0000 (18:14 +0000)
commitfee0055bd6704959d9a7dbf07de9409d16192b32
tree24726f9afbb21a351c53c2d3f4d5bbf032d9c4b4
parent50bdfeb9d59a55201b957f7b9b71c2074a545917
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: http://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