jacob [Sun, 19 Dec 2004 23:15:17 +0000 (23:15 +0000)]
Correct number of configurable colours (NCFGCOLOURS) to match reality
(leftover from `256-colours', r4917).
git-svn-id: svn://svn.tartarus.org/sgt/putty@5013
cda61777-01e9-0310-a592-
d414129be87e
jacob [Sun, 19 Dec 2004 22:37:05 +0000 (22:37 +0000)]
Fix line cursor colours (fallout from `256-colours'), on both Windows and Unix.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5012
cda61777-01e9-0310-a592-
d414129be87e
jacob [Sat, 18 Dec 2004 11:34:41 +0000 (11:34 +0000)]
Make sure the docs in a Unix release tarball are generated with the correct
version info.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5011
cda61777-01e9-0310-a592-
d414129be87e
jacob [Sat, 18 Dec 2004 10:46:21 +0000 (10:46 +0000)]
Missed options off mput help
git-svn-id: svn://svn.tartarus.org/sgt/putty@5010
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 18 Dec 2004 10:00:27 +0000 (10:00 +0000)]
zip apparently gives a warning (`-l used on binary file') when you
use -l on a UTF-8 text file. Move potentially UTF-8 things (the new
testdata files) into a new category of source files, and suppress
zip's warning for that category.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5009
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 17 Dec 2004 14:25:53 +0000 (14:25 +0000)]
Jacob has pointed out why SIGCHLD was blocked, so I've updated the
comment when I unblock it in pty.c to reflect reality. Also I've
moved block_signal() out of pterm.c into signal.c, so I can
conveniently use it for unblocking SIGCHLD rather than having to
reinvent it in pty.c.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5006
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 17 Dec 2004 13:39:41 +0000 (13:39 +0000)]
The xfer mechanism wasn't gracefully terminating when an error was
encountered part way through transfer. In particular, this caused
psftp to hang (waiting for FXP_READ replies which had already
arrived) if you try `get' (without -r) on a remote directory.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5005
cda61777-01e9-0310-a592-
d414129be87e
jacob [Fri, 17 Dec 2004 13:00:01 +0000 (13:00 +0000)]
Document recent SFTP changes:
- document behaviour of "-r" with mget/mput/reget/reput
- document "close" command
- document SFTP wildcard syntax for those who may not be familiar with Unix
wildcards
git-svn-id: svn://svn.tartarus.org/sgt/putty@5004
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 17 Dec 2004 12:55:12 +0000 (12:55 +0000)]
I _think_ I've just fixed `font-overflow'. term->disptext now tracks
the start of every contiguous run passed to do_text() or
do_cursor(), and arranges never to overwrite only part of such a run
on the next update.
I'm a bit worried about this checkin because I've also completely
revamped cursor handling: the cursor was previously being drawn
_outside_ the main loop over the display line, and is now drawn as
part of that loop when it gets to the cursor location. It _seems_ to
still work sensibly, even in complex cases involving LATTR_WIDE and
double-width CJK characters etc, but I won't be entirely happy until
it's had some beta use.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5003
cda61777-01e9-0310-a592-
d414129be87e
jacob [Fri, 17 Dec 2004 12:15:17 +0000 (12:15 +0000)]
Update online help for "-r" and "--" options to get/put commands.
Use command name in error messages rather than hardcoded "get:"/"put:".
git-svn-id: svn://svn.tartarus.org/sgt/putty@5002
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 17 Dec 2004 11:37:16 +0000 (11:37 +0000)]
Divide the do_paint() loop into several subloops. The activity of
going through the line and working out which bits need to be redrawn
is now in a separate loop from the subsequent activity of actually
going through and doing the redraws. This _should_ enable me to
tinker with the which-bits-to-redraw data in between the two, thus
fixing `font-overflow'. However, I thought it would be sensible to
break the work up into two commits so we can track bugs in the
restructuring separately from bugs introduced by the new feature.
Also added a couple more terminal test files.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5001
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 17 Dec 2004 11:24:25 +0000 (11:24 +0000)]
I had apparently broken wrapping of double-width characters (again).
Also fixed the new UTF-8 test file so that it tests double-width
wrapping both with _and_ without LATTR_WRAPPED2.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5000
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 17 Dec 2004 11:18:13 +0000 (11:18 +0000)]
I'd rather not keep losing these little test files, so here's some
stuff that I can `cat' into a terminal to test particular features
of it.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4999
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 17 Dec 2004 09:43:09 +0000 (09:43 +0000)]
Apparently SIGCHLD is blocked by default in processes run in a
pterm, which was breaking my bash job notification patch. This is
apparently not the case for xterm, so I've fiddled with it. Not
entirely sure _why_ it did this in the first place, but there we go.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4997
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 16 Dec 2004 19:36:47 +0000 (19:36 +0000)]
General mechanism for ensuring a dodgy SFTP server can't return
malicious filenames via FXP_READDIR.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4995
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 16 Dec 2004 19:19:59 +0000 (19:19 +0000)]
Implement the `close' command, which terminates an SFTP session but
does not quit PSFTP, so you can then issue another `open' to connect
to somewhere else. This has apparently been trivial for some time,
for exactly the same reasons that `reuse-windows' was so easy, but
it hadn't occurred to me to actually do it until now.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4994
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 16 Dec 2004 19:15:38 +0000 (19:15 +0000)]
Jacob points out that I introduced a bug in PSFTP when I did the
timing shakeup: just running `psftp' caused the net/stdin select
loop (on both Unix and Windows) to get confused at the lack of any
network connection and give up immediately. Should now be fixed.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4993
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 16 Dec 2004 17:45:29 +0000 (17:45 +0000)]
Wildcards in `ls'. I think that completes `psftp-multi'. Woo!
git-svn-id: svn://svn.tartarus.org/sgt/putty@4992
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 16 Dec 2004 17:35:20 +0000 (17:35 +0000)]
Implement mget and mput in PSFTP, supporting wildcards.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4991
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 16 Dec 2004 16:37:37 +0000 (16:37 +0000)]
Support for recursive file transfer in PSFTP.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4990
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 16 Dec 2004 15:38:39 +0000 (15:38 +0000)]
Fix obviously stupid segfault. Ahem.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4989
cda61777-01e9-0310-a592-
d414129be87e
jacob [Thu, 16 Dec 2004 15:22:36 +0000 (15:22 +0000)]
Abe Crabtree complains that flushing the log file as often as we do in 0.56
results in unacceptable performance for him on Win2000. Add a checkbox to
revert to the old behaviour.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4988
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 16 Dec 2004 15:01:43 +0000 (15:01 +0000)]
Rename scp.* to pscp.*, because I always misspell it that way. Also
it's more consistent with PSFTP like this: scp.c/pscp.c is more
similar to psftp.c (the main application framework) than it is to
sftp.c (a set of back-end library routines).
git-svn-id: svn://svn.tartarus.org/sgt/putty@4987
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 10 Dec 2004 11:41:14 +0000 (11:41 +0000)]
Unix PSCP was tight-looping when connecting through a ProxyCommand.
Turned out that sk_localproxy_close() was closing the pipe fds
without removing them from the uxsel list.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4965
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 8 Dec 2004 19:41:14 +0000 (19:41 +0000)]
Replace the RLE-based getType() function with one that binary-
searches a list of (start,end,type) tuples. This increases data size
by about 5Kb, which is a shame; but on the plus side, it boosts
performance from O(N) to O(log N). As an added bonus, the table now
covers _all_ of Unicode, not just the BMP.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4964
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 8 Dec 2004 19:07:05 +0000 (19:07 +0000)]
Further clarity and speed cleanups of minibidi:
- rewrote the reversal loop in flipThisRun to be considerably clearer
- rewrote leastGreaterOdd and leastGreaterEven as bit-twiddling macros
- replaced malloc/free with snewn/sfree
- lost some gratuitous repeat calls of getType on the same character
And most noticeably:
- got rid of minibidi.h, since it was entirely full of minibidi.c
internals (including constant data definitions!) and wasn't used
to provide an external interface at all. Everything in it has
been folded into minibidi.c.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4963
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 7 Dec 2004 18:18:28 +0000 (18:18 +0000)]
Reformat minibidi.[ch] in line with my coding conventions. It was
just getting to be too much hassle trying to work with the existing
indentation.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4952
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 7 Dec 2004 18:10:09 +0000 (18:10 +0000)]
Bidi stability work. I _think_ I've now removed all the failures of
array bounds checking.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4951
cda61777-01e9-0310-a592-
d414129be87e
owen [Tue, 7 Dec 2004 11:50:44 +0000 (11:50 +0000)]
Fix segfault when HOME not set on Unix.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4948
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 2 Dec 2004 13:48:32 +0000 (13:48 +0000)]
\n and \r need double backslashes in Halibut.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4947
cda61777-01e9-0310-a592-
d414129be87e
jacob [Thu, 2 Dec 2004 13:37:28 +0000 (13:37 +0000)]
NULL a couple of members after freeing them in ssh_free(). In particular,
should stop ssh_do_close() accessing freed ssh->channels when invoked later
from ssh_free(). Spotted by Fred Sauer.
(Perhaps this is the cause of the crashes people have been reporting on
abnormal closures such as `Software caused connection abort'? I've not been
able to test this.)
git-svn-id: svn://svn.tartarus.org/sgt/putty@4946
cda61777-01e9-0310-a592-
d414129be87e
ben [Thu, 2 Dec 2004 13:07:32 +0000 (13:07 +0000)]
Mention our assumptions about the execution character set. Not very
well-written, since my brain is largely absent today.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4945
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 1 Dec 2004 15:34:12 +0000 (15:34 +0000)]
Bah. Ben points out that SSH_1_ version strings should still end in
\n, and also that `\r' and `\n' don't mean what I think they mean on
all compilers (Mac reverses them).
git-svn-id: svn://svn.tartarus.org/sgt/putty@4941
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 1 Dec 2004 13:42:50 +0000 (13:42 +0000)]
And now I look at it, the latest draft also says version strings
should be followed by \r\n, not just \n.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4940
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 1 Dec 2004 13:37:31 +0000 (13:37 +0000)]
Kimmo Parviainen points out that SSH software version strings have
restrictions on the use of hyphens and spaces.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4939
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 1 Dec 2004 09:25:20 +0000 (09:25 +0000)]
term_bidi_cache_store() now has a need to distinguish between the
_width_ of a terminal line (number of character cell positions) and
its _size_ (number of termchars), since of course these differ in
the presence of combining characters.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4938
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 30 Nov 2004 13:39:58 +0000 (13:39 +0000)]
Fix large memory leak introduced in the r4915 bidi changes.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4936
cda61777-01e9-0310-a592-
d414129be87e
jacob [Tue, 30 Nov 2004 01:07:29 +0000 (01:07 +0000)]
Another default-background fix for 256-colour mode
git-svn-id: svn://svn.tartarus.org/sgt/putty@4931
cda61777-01e9-0310-a592-
d414129be87e
owen [Mon, 29 Nov 2004 16:58:02 +0000 (16:58 +0000)]
Nitpick, close bracket.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4926
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 29 Nov 2004 11:31:21 +0000 (11:31 +0000)]
Some blurb about terminal types and 256-colour xterms. Thanks to Dan
Nicolaescu for the suggestion.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4925
cda61777-01e9-0310-a592-
d414129be87e
jacob [Mon, 29 Nov 2004 09:40:59 +0000 (09:40 +0000)]
rm '$Source$' from comments as not meaningful under Subversion
git-svn-id: svn://svn.tartarus.org/sgt/putty@4924
cda61777-01e9-0310-a592-
d414129be87e
jacob [Mon, 29 Nov 2004 09:27:13 +0000 (09:27 +0000)]
typo in comment
git-svn-id: svn://svn.tartarus.org/sgt/putty@4923
cda61777-01e9-0310-a592-
d414129be87e
jacob [Mon, 29 Nov 2004 09:23:11 +0000 (09:23 +0000)]
Briefly document the "CP866" manual-entry feature on Windows in the dialog
itself (since we have a bit of room).
git-svn-id: svn://svn.tartarus.org/sgt/putty@4922
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 28 Nov 2004 15:18:23 +0000 (15:18 +0000)]
Bah, there's always one thing I miss. Correct the background-colour
handling in Unix PuTTY.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4918
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 28 Nov 2004 15:13:34 +0000 (15:13 +0000)]
Implement xterm 256-colour mode.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4917
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 28 Nov 2004 09:32:17 +0000 (09:32 +0000)]
Stability fixes (thanks valgrind).
git-svn-id: svn://svn.tartarus.org/sgt/putty@4916
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 28 Nov 2004 09:24:57 +0000 (09:24 +0000)]
Cursor position, selection highlights and mouse clicks are now all
transformed back and forth according to the character position
permutation output from the bidi algorithm. I was expecting that to
be a lot harder.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4915
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 28 Nov 2004 00:48:31 +0000 (00:48 +0000)]
Oops; forgot to add this file in r4913.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4914
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 27 Nov 2004 19:56:38 +0000 (19:56 +0000)]
Loose end from timing shakeup: sshrand.c is now a client of
timing.c, and hence takes its own responsibility for calling
noise_regular() at regular intervals. Again, this means it will be
called consistently in _all_ the SSH-speaking tools, not just those
in which I remembered to call it!
git-svn-id: svn://svn.tartarus.org/sgt/putty@4913
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 27 Nov 2004 19:41:24 +0000 (19:41 +0000)]
Changes in startup order to ensure any subsystem which might attempt
to schedule timers is not started until after hwnd is initialised.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4912
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 27 Nov 2004 19:34:45 +0000 (19:34 +0000)]
Slight improvement to cursor blink timing: since the cursor doesn't
blink when the window doesn't have focus, we don't schedule blink
timers at that point either.
Infrastructure change: term->has_focus should now not be written
directly from outside terminal.c. Instead, use the function
term_set_focus, which will sort out the blink timers as well.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4911
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 27 Nov 2004 15:32:45 +0000 (15:32 +0000)]
Almost _all_ of the final connection-layer loop, in both SSH1 and
SSH2, is now handled by the packet dispatch table. Dispatch table
entries are enabled as soon as possible, so that if anyone tries to
(for example) start using a forwarded port before the main shell
session setup has finished, things should work sensibly.
The SSH code is now a hybrid of coroutine-based sequential logic and
table-driven event dispatch, each where it makes the most sense. I'm
rather pleased with it.
Should fix: ext-data-at-start, portfwd-at-start.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4909
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 27 Nov 2004 14:29:20 +0000 (14:29 +0000)]
Implement client-initiated rekeys after an hour, or after 1Gb of
data transfer in either direction (whichever comes first), or at
explicit client request (nice idea Jacob). Have tested by lowering
the limits, and it all seems solid enough; in particular, this has
also allowed me to test the behaviour when connection-level data is
received during rekey, and that looks fine too (at least it does
_now_ :-).
git-svn-id: svn://svn.tartarus.org/sgt/putty@4908
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 27 Nov 2004 13:31:07 +0000 (13:31 +0000)]
Bah, I knew I'd miss _something_. term_out is now static, so
declaring it in putty.h gives a warning under Unix.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4907
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 27 Nov 2004 13:20:21 +0000 (13:20 +0000)]
New timing infrastructure. There's a new function schedule_timer()
which pretty much any module can call to request a call-back in the
future. So terminal.c can do its own handling of blinking, visual
bells and deferred screen updates, without having to rely on
term_update() being called 50 times a second (fixes: pterm-timer);
and ssh.c and telnet.c both invoke a new module pinger.c which takes
care of sending keepalives, so they get sent uniformly in all front
ends (fixes: plink-keepalives, unix-keepalives).
git-svn-id: svn://svn.tartarus.org/sgt/putty@4906
cda61777-01e9-0310-a592-
d414129be87e
jacob [Thu, 25 Nov 2004 13:40:01 +0000 (13:40 +0000)]
uint64_decimal() incorrectly output 0 as "" instead of "0". This only affected
PSFTP's "reput" chat. Spotted by Greg Parker.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4904
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 24 Nov 2004 20:35:15 +0000 (20:35 +0000)]
Re-architected the top level of the SSH protocol handlers.
ssh1_protocol() and ssh2_protocol() are now high-level functions
which see _every_ SSH packet and decide which lower-level function
to pass it to. Also, they each support a dispatch table of simple
handler functions for message types which can arrive at any time.
Results are:
- ignore, debug and disconnect messages are now handled by the
dispatch table rather than being warts in the rdpkt functions
- SSH2_MSG_WINDOW_ADJUST is handled by the dispatch table, which
means that do_ssh2_authconn doesn't have to explicitly
special-case it absolutely every time it waits for a response to
its latest channel request
- the top-level SSH2 protocol function chooses whether messages get
funnelled to the transport layer or the auth/conn layer based on
the message number ranges defined in the SSH architecture draft -
so things that should go to auth/conn go there even in the middle
of a rekey (although a special case is that nothing goes to
auth/conn until initial kex has finished). This should fix the
other half of ssh2-kex-data.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4901
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 24 Nov 2004 19:53:31 +0000 (19:53 +0000)]
random_init() should be called at most once during the running of
PuTTY, even if it's managing multiple sessions.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4900
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 24 Nov 2004 19:23:02 +0000 (19:23 +0000)]
Now that Packet structures are dynamically allocated, it means we
can keep several of them in parallel. In particular, this allows us
to queue outgoing packets during repeat key exchange, to be actually
sent after the rekey completes.
(This doesn't fully fix ssh2-kex-data; also required is the ability
to handle _incoming_ connection-layer packets during rekey without
exploding.)
git-svn-id: svn://svn.tartarus.org/sgt/putty@4899
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 24 Nov 2004 18:45:52 +0000 (18:45 +0000)]
Minor refactoring: the fields `pktin' and `pktout' in the Ssh
structure have been retired. Now all Packet structures are
dynamically allocated. Each rdpkt function allocates one, and it's
freed after being used; and the packet construction functions
allocate them too, and they're freed by the send functions.
`pktin' and `pktout' were ugly. They were _morally_ still global
variables; even though they were replicated per SSH session to
comply with the Mac no-globals requirement, they weren't really in
the _spirit_ of `dynamically allocate your data'.
As a side effect of this change, the `pktout_blanks' and
`pktout_nblanks' fields in the Ssh structure have been moved into
the Packet structure.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4898
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 24 Nov 2004 11:42:45 +0000 (11:42 +0000)]
I think rjk meant `setpgid', not `setpgrp'.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4897
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 24 Nov 2004 11:36:08 +0000 (11:36 +0000)]
RJK's OS X portability patch:
- initialise blank mbstate_t using memset rather than an ad-hoc
initialiser.
- expand the OMIT_UTMP ifdefs to enclose a load of entire functions
that would generate `static function never called' warnings if
left as empty shells.
- couple of other fiddly things.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4896
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 24 Nov 2004 11:35:27 +0000 (11:35 +0000)]
It's probably about time I took my private path to the Halibut
binary out of the PuTTY docs Makefile. Instead, I expect to find
Halibut as simply `halibut' on the PATH, and anyone who doesn't have
it there can always do `make HALIBUT=/path/to/halibut'.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4895
cda61777-01e9-0310-a592-
d414129be87e
jacob [Wed, 24 Nov 2004 03:18:14 +0000 (03:18 +0000)]
\k --> \K
git-svn-id: svn://svn.tartarus.org/sgt/putty@4893
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 23 Nov 2004 16:43:04 +0000 (16:43 +0000)]
Darek Olszewski points out that telnet->ldisc is never initialised
to NULL.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4888
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 22 Nov 2004 13:49:12 +0000 (13:49 +0000)]
Fix typo in term_size(), flagged by a Dr Watson log from Temme Rainer.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4881
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 22 Nov 2004 12:42:33 +0000 (12:42 +0000)]
Minor index tweakery.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4880
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 22 Nov 2004 11:02:44 +0000 (11:02 +0000)]
Trivial bug fix pointed out by Paul Fox: potentially missing fclose().
git-svn-id: svn://svn.tartarus.org/sgt/putty@4877
cda61777-01e9-0310-a592-
d414129be87e
jacob [Sat, 20 Nov 2004 19:07:34 +0000 (19:07 +0000)]
Add missing backslash in "Unable to create registry key" messages.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4855
cda61777-01e9-0310-a592-
d414129be87e
jacob [Sat, 20 Nov 2004 18:29:58 +0000 (18:29 +0000)]
UI tweak from Malcolm Rowe: set IDM_VIEWKEYS as the default menu item and use
that mechanism to invoke it on double-click; this emboldens it in the right-
click menu.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4851
cda61777-01e9-0310-a592-
d414129be87e
jacob [Sat, 20 Nov 2004 17:47:40 +0000 (17:47 +0000)]
XXX comment in the logic which sends failed password auth back to username
prompt for keyboard-interactive. I suspect we should do the same with that
method (especially given the apparent number of systems that use it for
regular password auth), but in the absence of systems to test against I've
not actually made the change. (I'm worried that the `partial success' field
might not be set correctly in a multi-stage authentication, for instance.)
git-svn-id: svn://svn.tartarus.org/sgt/putty@4850
cda61777-01e9-0310-a592-
d414129be87e
jacob [Sat, 20 Nov 2004 17:11:38 +0000 (17:11 +0000)]
As a result of the policy allowing changes of username to reset the
authentication state, a failed `password' authentication in SSH-2 was
sending us back to trying `none' and `keyboard-interactive' each time
round, which uses up OpenSSH's quota of authentication attempts rather
quickly. Added a check for `cfg.change_username' to the logic which
sends us back to the start.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4849
cda61777-01e9-0310-a592-
d414129be87e
jacob [Fri, 19 Nov 2004 21:24:47 +0000 (21:24 +0000)]
Make PSFTP use console_get_line() to fetch username, so that that prompt is
affected by `-batch'.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4833
cda61777-01e9-0310-a592-
d414129be87e
jacob [Fri, 19 Nov 2004 21:05:31 +0000 (21:05 +0000)]
console_get_line() returns failure iff console_batch_mode is set, whereas
before is would return success and the empty string. IMO this makes `-batch'
much more useful; before, utilities such as Plink in `-batch' mode would
attempt to plough on using empty strings for usernames, passwords, and so on.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4832
cda61777-01e9-0310-a592-
d414129be87e
jacob [Fri, 19 Nov 2004 20:57:32 +0000 (20:57 +0000)]
Remove FLAG_INTERACTIVE test from "login as:" prompt. Kelly John Carney
pointed out that Plink would attempt to use a zero-length username iff
a remote command was specified (because the FLAG_INTERACTIVE test was
erroneously combined with the no-username test).
I don't think this will break non-interactive use; in the cases which
behave differently, Plink would be attempting to use the empty
username, which was almost certainly wrong, whereas now it will give a
prompt (which can be avoided with -batch as usual).
(Although perhaps we should attempt to use a local username as a guess for
the remote username, as PSCP does? I've not done this.)
git-svn-id: svn://svn.tartarus.org/sgt/putty@4831
cda61777-01e9-0310-a592-
d414129be87e
jacob [Thu, 18 Nov 2004 19:44:26 +0000 (19:44 +0000)]
"Connection reset by peer" is apparently not the only error that keepalives can
help with.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4819
cda61777-01e9-0310-a592-
d414129be87e
jacob [Thu, 18 Nov 2004 19:41:41 +0000 (19:41 +0000)]
"Software caused connection abort": a couple of people now have got rid of
this with keepalives. Also try to emphasise that this seems to be a generic
catch-all type of error.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4818
cda61777-01e9-0310-a592-
d414129be87e
jacob [Thu, 18 Nov 2004 17:13:45 +0000 (17:13 +0000)]
*sigh* X11 forwarding to a local display (":0" or similar) specified in the
environment rather than the configuraton was failing as of 0.56 (introduced
in r4604). This probably only bit users of Unix PuTTY. Didn't spot in testing
as I was forwarding to already-forwarded displays. I really wasn't having a
good month that month, was I?
git-svn-id: svn://svn.tartarus.org/sgt/putty@4816
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 18 Nov 2004 15:16:18 +0000 (15:16 +0000)]
Add an extra appendix to the manual containing PuTTY's (hitherto)
unwritten design principles, so would-be contributors won't have to
either read our minds or pay _very_ close attention to the code.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4815
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 18 Nov 2004 11:30:39 +0000 (11:30 +0000)]
Move MODULE files out of individual project directories into a
MODULES top-level directory, which is where the Tartarus website
scripts will (hopefully) start reading them from.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4813
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 17 Nov 2004 18:27:04 +0000 (18:27 +0000)]
mkunxarc.sh was still including (mostly empty) .svn directories, and
that in turn was confusing the new doc/Makefile mechanism. Fixed the
former, and also put an additional safeguard in the latter in a
belt-and-braces sort of fashion.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4806
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 17 Nov 2004 18:16:59 +0000 (18:16 +0000)]
Now we use Subversion, it seems excessive to have an individual $Id$
line for every single .but file at the bottom of each page of the
HTML PuTTY docs. However, we can't _always_ replace that with a
single SVN revision, because there isn't always one available (SVN
still allows mixed working copies in which some files are
deliberately checked out against a different revision).
Hence, here's a mechanism for doing better. It uses `svnversion .'
to determine _whether_ a single revision number adequately describes
the current directory, and replaces all the version IDs with that if
so. If it can't do that, it uses the version IDs as before.
Also, this allows an explicit version string to be passed on the
make command line which will override _both_ these possibilities, so
that release documentation can be clearly labelled with the release
version number.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4804
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 17 Nov 2004 08:02:01 +0000 (08:02 +0000)]
Fix mksrcarc.sh for directory reorganisation.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4797
cda61777-01e9-0310-a592-
d414129be87e
jacob [Tue, 16 Nov 2004 23:58:25 +0000 (23:58 +0000)]
pedantic s/CVS/Subversion/
git-svn-id: svn://svn.tartarus.org/sgt/putty@4796
cda61777-01e9-0310-a592-
d414129be87e
jacob [Tue, 16 Nov 2004 23:32:57 +0000 (23:32 +0000)]
Some tweaks for Subversion and windows/ subdir.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4794
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 16 Nov 2004 23:26:22 +0000 (23:26 +0000)]
Fix Windows installer script: the paths were wrong after the
directory reorganisation, and also the EOL style needs to be CRLF or
Inno Setup gets upset.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4793
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 16 Nov 2004 22:14:56 +0000 (22:14 +0000)]
Now that we have Subversion's file renaming ability, it's time at
long last to move all the Windows-specific source files down into a
`windows' subdirectory. Only platform-specific files remain at the
top level. With any luck this will act as a hint to anyone still
contemplating sending us a Windows-centric patch...
git-svn-id: svn://svn.tartarus.org/sgt/putty@4792
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 16 Nov 2004 18:01:39 +0000 (18:01 +0000)]
Various changes related to the Subversion migration.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4790
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 16 Nov 2004 15:29:14 +0000 (15:29 +0000)]
Remove .cvsignore files on all active branches.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4788
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 16 Nov 2004 15:27:00 +0000 (15:27 +0000)]
CVS revision numbers, stored as `cvs2svn:cvs-rev' properties, are a
useful piece of history in this repository but we don't want to
preserve their latest values on future commits. Accordingly, I'm
deleting them from all active development (though not from past
release branches).
git-svn-id: svn://svn.tartarus.org/sgt/putty@4787
cda61777-01e9-0310-a592-
d414129be87e
jacob [Mon, 15 Nov 2004 15:57:28 +0000 (15:57 +0000)]
Mention that comp.terminals may also be a useful newsgroup.
I've done this by centralising information about newsgroups in feedback.but
and linking to that from elsewhere; I've also put in a link to Google Groups.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4781
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 15 Nov 2004 11:10:36 +0000 (11:10 +0000)]
Miloslav Cempirek Ing points out that we should return from
sessionsaver_handler after processing a one-click saved session
launch, to protect against accidentally calling dlg_end twice on the
same dialog.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4779
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 11 Nov 2004 09:40:50 +0000 (09:40 +0000)]
I masked off LATTR_WRAPPED et al in do_text_internal(), but forgot
to do the same in do_cursor(). Bet that's the cause of Andrey
Borzenkov's cursor positioning bug.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4770
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 9 Nov 2004 17:57:32 +0000 (17:57 +0000)]
DJSD requests a force-monochrome option for users who dislike angry-
fruit-salad applications :-)
git-svn-id: svn://svn.tartarus.org/sgt/putty@4762
cda61777-01e9-0310-a592-
d414129be87e
jacob [Tue, 2 Nov 2004 23:06:43 +0000 (23:06 +0000)]
Note upper limit of WM_SYSCOMMAND identifiers in a comment.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4734
cda61777-01e9-0310-a592-
d414129be87e
jacob [Tue, 2 Nov 2004 23:06:20 +0000 (23:06 +0000)]
Go back to using intervals of 16 for the saved session identifiers for the
system menu, but expand from 256 entries to 1024 as there seems to be plenty
of space.
Also remove a couple of unused IDM_* constants.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4733
cda61777-01e9-0310-a592-
d414129be87e
jacob [Tue, 2 Nov 2004 22:30:24 +0000 (22:30 +0000)]
Simon has reminded me _why_ menu identifiers were spaced every sixteen, so
let's add a comment so that we don't forget again. Source:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardaccelerators/keyboardacceleratorreference/keyboardacceleratormessages/wm_syscommand.asp>
git-svn-id: svn://svn.tartarus.org/sgt/putty@4732
cda61777-01e9-0310-a592-
d414129be87e
jacob [Tue, 2 Nov 2004 17:44:06 +0000 (17:44 +0000)]
Since neither I nor Owen know why the IDM_ values for the saved-sessions
submenu were going up in steps of 16, I've changed to steps of 1, thus
increasing the possible number of sessions from ~256 to 4096, since a
recent report seemed to indicate that the previous limit might not be
enough for someone (!)
I can't find any documentation that puts an upper limit on the number of
menu items, and it seems to work on Win98, which is where I'd expect it to
break if anywhere.
Also a number of other tweaks to this code.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4731
cda61777-01e9-0310-a592-
d414129be87e
jacob [Mon, 1 Nov 2004 14:18:37 +0000 (14:18 +0000)]
Argh, I messed up SSH1 remote tunnels too (same mistake).
git-svn-id: svn://svn.tartarus.org/sgt/putty@4728
cda61777-01e9-0310-a592-
d414129be87e
jacob [Mon, 1 Nov 2004 00:47:37 +0000 (00:47 +0000)]
Ahem, let's not try initialising a static with a non-constant initialiser.
Also, I'm pretty sure that adding a source address to a remote SSH-2 forwarding
can never have worked, since we added an address string to the packet twice in
that case. OpenSSH 3.4p1 certainly doesn't like it (`Server has disabled port
forwarding' debug message). Fixed (and OpenSSH is happier now).
git-svn-id: svn://svn.tartarus.org/sgt/putty@4727
cda61777-01e9-0310-a592-
d414129be87e