simon-git: putty (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Thu Sep 24 18:02:41 BST 2015
TL;DR:
13edf90 Command-line options to log sessions.
5c5ca11 Centralise stripslashes() and make it OS-sensitive.
Repository: git://git.tartarus.org/simon/putty.git
On the web: http://tartarus.org/~simon-git/gitweb/?p=putty.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2015-09-24 18:02:41
commit 13edf90e0a4397088085cfcd53a4311319b708b4
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=13edf90e0a4397088085cfcd53a4311319b708b4;hp=342f287660cb180a393db779df58ad4a6c9f4893
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Sep 24 17:30:04 2015 +0100
Command-line options to log sessions.
Log files, especially SSH packet logs, are often things you want to
generate in unusual circumstances, so it's good to have lots of ways
to ask for them. Particularly, it's especially painful to have to set
up a custom saved session to get diagnostics out of the command-line
tools.
I've added options '-sessionlog', '-sshlog' and '-sshrawlog', each of
which takes a filename argument. I think the fourth option (session
output but filtered down to the printable subset) is not really a
_debugging_ log in the same sense, so it's not as critical to have an
option for it.
cmdline.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
commit 5c5ca116dbe1c62b447eaeb22d4e59db44b9a1f5
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=5c5ca116dbe1c62b447eaeb22d4e59db44b9a1f5;hp=13edf90e0a4397088085cfcd53a4311319b708b4
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Sep 24 17:47:10 2015 +0100
Centralise stripslashes() and make it OS-sensitive.
I noticed that Unix PSCP was unwantedly renaming downloaded files
which had a backslash in their names, because pscp.c's stripslashes()
treated \ as a path component separator, since it hadn't been modified
since PSCP ran on Windows only.
It also turns out that pscp.c, psftp.c and winsftp.c all had a
stripslashes(), and they didn't all have quite the same prototype. So
now there's one in winsftp.c and one in uxsftp.c, with appropriate
OS-dependent behaviour, and the ones in pscp.c and psftp.c are gone.
pscp.c | 29 -----------------------------
psftp.c | 29 -----------------------------
psftp.h | 17 +++++++++++++++++
unix/uxsftp.c | 14 ++++++++++++++
windows/winsftp.c | 12 ++++++------
5 files changed, 37 insertions(+), 64 deletions(-)
More information about the tartarus-commits
mailing list