Commit Graph

1291 Commits

Author SHA1 Message Date
John Hood ec6980da96 GCC 6 fixes.
Should resolve https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811579

Resolves #719.
2016-05-10 00:14:22 -04:00
Anders Kaseorg 4c7200c016 --experimental-remote-ip=local: Substitute the IP more carefully
For example, do not interpret regex metacharacters within the
hostname, and avoid accidentally matching the username part of
username@hostname when they happen to match.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-05-09 03:01:32 -04:00
Jaeho Shin d636845c8d Display original command line argv via no-op flag.
Improves 679b819216 to make it simpler to
ignore mosh-client from OS X Terminal.app's "Ask before closing" process
list. (See: http://superuser.com/a/254647)

Moreover, the command displayed from ps is a completely functional one,
which was not the case in the previous approach, that mangles `argv[0]`.

Fixes #742.
2016-05-08 23:05:36 -04:00
John Hood 09bdc7caae Enforce SHELL=/bin/sh for more reliable SSH proxy command. 2016-05-08 22:59:30 -04:00
John Hood eb98976410 Add --experimental-remote-ip option. 2016-05-08 22:47:54 -04:00
John Hood 880c639361 Include POSIX header strings.h for strncasecmp()
Motivated by Cygwin.
2016-05-08 20:46:58 -04:00
john hood 9073983df3 crypto.cc: prefer bswap64() and ffs() if available.
Fixes #745.
2016-05-08 20:45:01 -04:00
John Hood f30738e325 Update test documentation. 2016-04-07 20:26:08 -04:00
John Hood bd2e8fc746 Improve test script performance, note issues with slow machines 2016-04-07 20:26:08 -04:00
Baruch Siach 7196dfdb26 configure.ac: link test for -fstack-protector-all
There are (broken) compilers out there that accept -fstack-protector-*
parameters, but do not provide the needed ssp library. As a result,
build does not fail, but link does. Use the local check_link_flag
autoconf function to correctly test for SSP availability.

Required for the Imagination Technologies Codescape IMG MIPS
toolchain, version 2015.10 (and who knows what else).

Fixes #744.
2016-04-07 20:05:06 -04:00
John Hood 2ba5d2bbb2 Handle zero-length allocations in AlignedBuffer. 2016-03-31 10:41:00 -04:00
John Hood 7af87d85cc Remove redundant stringification for decrypt(). 2016-03-30 23:52:19 -04:00
HIGUCHI Yuta 6075209038 bash-completion workaround for bash 3.2
This should resolve mobile-shell/mosh#675
2016-03-30 23:52:19 -04:00
Steve Dignam b275bdc5da removed _get_cword 2016-03-30 23:52:19 -04:00
Steve Dignam 99ce327d93 updated bash completion 2016-03-30 23:52:19 -04:00
John Hood c964d40dd8 Do not throw from destructors, fatal_assert() instead. 2016-03-30 23:52:19 -04:00
John Hood 49a4106ae4 src/tests: clean up duplicate code 2016-03-30 23:52:19 -04:00
John Hood ed92637f25 Use snprintf(), not sprintf()
Found by OpenBSD build.
2016-03-30 23:52:19 -04:00
John Hood 08f64a750a Prefer the system cc/c++, not GCC 2016-03-30 23:52:19 -04:00
John Hood d4832ca63a Fix bugs in resize handling.
* A resize action could be applied to the framebuffer but discarded
  before being applied to termios, causing them to be out of sync.

* Only every second action was skipped, instead of skipping
  consecutive resize actions, as intended.

Found by inspection, not seen in actual usage or by the window-resize
test.
2016-03-30 23:52:19 -04:00
John Hood 255dc39c9f Factor encrypt/decrypt out of Network::Message. 2016-03-30 23:52:19 -04:00
John Hood 6abd4739de Const correctness and const-ref in Crypto and elsewhere. 2016-03-30 23:52:19 -04:00
John Hood 13928e9c10 Use a secure counter for OCB's nonce. Protect nonce in Network::Packet. 2016-03-30 23:52:19 -04:00
John Hood de30452498 Add .gitattributes and EOL normalization 2016-03-30 23:52:19 -04:00
John Hood 1de6575e59 mosh-server.cc: Do not start user shell until network session starts 2016-03-30 23:52:19 -04:00
John Hood 6fd570f81f Various fixes for Illumos Hipster 20151003. 2016-03-30 23:52:19 -04:00
John Hood dbbed24d83 Use server's $SSH_CONNECTION if ProxyCommand isn't run.
This is an alternate way to resolve #417 without affecting
backward compatibility.
2016-03-30 23:52:19 -04:00
John Hood 9dbf3b366d mosh.pl: use single quotes where appropriate 2016-03-30 23:52:19 -04:00
John Hood 389fc23205 Better, more flexible handling for IPv4/IPv6.
Add --family=auto/all.
Attempt connects to all available addresses.
Working error handling.

Fixes #629.
2016-03-30 23:52:19 -04:00
Keith Winstein 46aac1834a debian/control and debian/copyright: Fix lintian warnings 2016-03-25 21:53:53 -07:00
Keith Winstein 1e4ae5f58d Pull updates to debian/changelog from debian-package branch 2016-03-25 21:38:09 -07:00
Keith Winstein 510a5f36b5 build-package.sh: git-buildpackage is now "gbp buildpackage" 2016-03-25 18:30:40 -07:00
john hood a47917b976 configure.ac: Do s/-pthreads -lpthreads/-pthreads/ for protobuf
protobuf uses an obsolete automake pthreads detection macro,
which results in "pkgconfig --libs protobuf" returning
"-lprotobuf -pthread -lpthread" on Linux.  Remove
the unnecessary and dangerous -lpthread in that case.

Fixes #727, mosh-server crash in libutempter on Debian Sid.
2016-03-18 20:31:01 -04:00
Keith Winstein e7303e0b66 Eliminated "handled" field in Parser::Action
This field was used during development to measure the
coverage of the ANSI terminal parser against typical
terminal input sequences.

The "handled" field has not been read by any code since
commit 1ee54cd7 (February 2011). Eliminating the field
by popular request (closes #723).
2016-02-10 22:06:18 -08:00
Erick Matsen 8200d5bdf0 Typo fix in server-network-timeout.test 2016-01-16 17:50:45 -05:00
Anders Kaseorg c9ec54a004 debian: Update GitHub URLs from keithw/mosh to mobile-shell/mosh
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-01-16 17:50:45 -05:00
Anders Kaseorg f928435274 debian/rules: Allow parallel build
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-01-16 17:50:45 -05:00
Anders Kaseorg 8816493ec9 debian/rules: Use dh_perl -d
By informing Debhelper that the mosh wrapper script only uses modules in
perl-base (dh_perl -d), we cause ${perl:Depends} to change from ‘perl’
to empty, which silences this build warning:

dpkg-gencontrol: warning: package mosh: unused substitution variable ${perl:Depends}

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-01-16 17:50:45 -05:00
Anders Kaseorg 9cf54e388e debian/mosh.maintscript: Remove extra -- "$@"
That is already added by dh_installdeb, so it was being added twice.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-01-16 17:50:45 -05:00
John Hood 60e3d380b8 Fix Cygwin compile warning. 2016-01-16 12:56:39 -05:00
John Hood e0f0905778 pty-deadlock.test: use background write, not non-blocking reads
Non-blocking reads turn out not to work so well on Cygwin
which has an older version of bash.
2016-01-12 23:09:24 -05:00
John Hood e61b3bd014 Test changes for Cygwin compatibility. 2016-01-11 06:14:27 -05:00
John Hood 6b71351138 select.h: workaround and report Cygwin select() bug
Resolves #705.
2016-01-11 04:37:35 -05:00
John Hood ca21788c96 Remove usage of exceptional fdsets with select(). 2016-01-11 04:35:21 -05:00
John Hood 19f214e46d Remove AM_TESTS_REDIRECT hack; use VERBOSE=1 instead. 2015-12-24 22:27:17 -05:00
John Hood 2ac3bbeb9b Fix prediction unicode bug. Make all Cell members private.
Fixes #702.
2015-12-24 22:27:17 -05:00
John Hood 90a529b18a Fix broken compile on Ubuntu 12.04 2015-12-07 00:25:47 -05:00
John Hood 1d71895ff4 Add support for back tab (CSI CBT), and forward tab (CSI CHT) too.
Resolves #539.
2015-12-06 22:38:19 -05:00
john hood 8609f88207 mosh-server: Fix hang with ^S on OS X and FreeBSD.
Fixes #692.
2015-12-06 19:09:42 -05:00
John Hood 551b77f27e Remove display-posterizing code. It's been dead 3 years.
Signed-off-by: John Hood <cgull@glup.org>
2015-12-06 19:03:36 -05:00