]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Sanitise bad characters in log file names.
authorSimon Tatham <anakin@pobox.com>
Fri, 25 Sep 2015 08:23:26 +0000 (09:23 +0100)
committerSimon Tatham <anakin@pobox.com>
Fri, 25 Sep 2015 08:35:07 +0000 (09:35 +0100)
commit64ec5e03d5362ed036e9de1a765085c571eaa3b7
treeb48c5c046109f28af69e9dea0862616fd5191e38
parente1628105163135ca21abb6a841d109969d7979ec
Sanitise bad characters in log file names.

On Windows, colons are illegal in filenames, because they're part of
the path syntax. But colons can appear in automatically constructed
log file names, if an IPv6 address is expanded from the &H placeholder.

Now we coerce any such illegal characters to '.', which is a bit of a
bodge but should at least cause a log file to be generated.
logging.c
putty.h
unix/uxmisc.c
windows/winmisc.c