1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 12:02:47 -05:00

Yikes - saving of Default Settings must have been broken for some

time! The load code in settings.c was translating an empty string
into "Default Settings" to pass to {win,ux}store, whereas the save
code was passing the empty string straight down and expecting it to
be dealt with. So, a policy decision: the precise name of the
"Default Settings" special session _at the storage level_ is up to
the individual platform storage code to decide, and all platforms
MUST assume Default Settings is meant if they receive NULL or the
empty string as a session name.

[originally from svn r2974]
This commit is contained in:
Simon Tatham
2003-03-22 09:49:20 +00:00
parent 429fe02ac8
commit a185d54301
2 changed files with 7 additions and 4 deletions

View File

@ -631,10 +631,7 @@ void load_open_settings(void *sesskey, int do_host, Config *cfg)
void do_defaults(char *session, Config * cfg)
{
if (session)
load_settings(session, TRUE, cfg);
else
load_settings("Default Settings", FALSE, cfg);
load_settings(session, (session != NULL && *session), cfg);
}
static int sessioncmp(const void *av, const void *bv)