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)
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


No differences found