mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -05:00
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.) [originally from svn r7084]
This commit is contained in:
@ -156,7 +156,7 @@ int filename_is_null(Filename fn)
|
||||
return fn.fss.vRefNum == 0 && fn.fss.parID == 0 && fn.fss.name[0] == 0;
|
||||
}
|
||||
|
||||
FILE *f_open(Filename fn, char const *mode)
|
||||
FILE *f_open(Filename fn, char const *mode, int is_private)
|
||||
{
|
||||
short savevol;
|
||||
long savedir;
|
||||
|
Reference in New Issue
Block a user