]> 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>
Sat, 17 Oct 2015 16:33:31 +0000 (17:33 +0100)
commit5c76a93a44bdd0d6d15e644176a0257d9ce7bf9b
treed1552f5dba2e43974a3dd8a52b6c8a462f0d7e7d
parentfbea11f44b972ce48ae5912f9e30df4e0c03e8c9
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.

(cherry picked from commit 64ec5e03d5362ed036e9de1a765085c571eaa3b7)
logging.c
putty.h
unix/uxmisc.c
windows/winmisc.c