Ken Hornstein [Thu, 2 Jan 2014 20:04:17 +0000 (15:04 -0500)]
Always emit an STR instruction for terminal escape sequences, otherwise you
can get unintended results (like printint the previous contents of the str
register, which is almost certainly what you don't want).
Ken Hornstein [Tue, 31 Dec 2013 20:19:21 +0000 (15:19 -0500)]
Make sure that branching instructions are traced even if we're executing the
branch (previously, they would only be traced if they did not execute the
branch).
David Levine [Sat, 28 Dec 2013 17:51:01 +0000 (11:51 -0600)]
Added support for running the test suite with valgrind by setting
the NMH_VALGRIND environment variable. To support that, nmh
programs that are invoked in the test suite should be run via
(the new function) run_prog or run_test.
David Levine [Sun, 22 Dec 2013 20:42:26 +0000 (14:42 -0600)]
With whatnow attach, determine the content MIME type that's inserted
into the Content-Type header using file --mime or file -i, if
available on the platform at configuration time. If not, continue to
use the mhshow-suffix- method. Added a mimetypeproc component to
mhparam so that a user can query the configuration.
David Levine [Sat, 14 Dec 2013 14:51:42 +0000 (08:51 -0600)]
The build failed mysteriously on the OpenBSD buildbot host ("Provide
an AUTOCONF_VERSION environment variable, please"). This was in the
compile, not autogen, phase. Committing trivial change to kick off
another build.
Pascal Stumpf [Sat, 14 Dec 2013 00:57:57 +0000 (18:57 -0600)]
rand()/srand() are not cryptographically secure PRNGs. Some systems
have the much better suited arc4random() family of functions; there's
no reason to not use it if it is available. Make m_rand() just a
wrapper around arc4random_buf() in that case. (There's no need to
ever seed it manually.)
David Levine [Fri, 13 Dec 2013 02:15:14 +0000 (20:15 -0600)]
Minor changes to configure.ac:
1) Replaced direct manipulation of NDEBUG with AC_HEADER_ASSERT.
2) Removed unnecessary level of quoting around LFLAGS assignments.
David Levine [Fri, 13 Dec 2013 00:37:58 +0000 (18:37 -0600)]
Tweaked rcvtty.c to squelch warnings on OpenBSD. Three of the
four were due to unused artifacts with HAVE_GETUTXENT not defined.
The fourth was due to control reaching the end of non-void
function message_id(), which had an _exit() call at the end.
Lyndon Nerenberg [Thu, 12 Dec 2013 19:55:58 +0000 (11:55 -0800)]
Add buildbot hacks for OpenBSD.
OpenBSD auto{conf,make} want a version specified in the environment
for each of the tools. For now, hardwire this into autogen.sh until
we can figure out a better way of dealing with this.
David Levine [Wed, 11 Dec 2013 00:22:23 +0000 (18:22 -0600)]
Removed a bunch of unreachable break statements found by
SunStudio cc -v. Also fixed an "end-of-loop code not
reached" condition in uip/dropsbr.c. That one is significant
because it meant that retries were not attempted when attempting
to open and lock a file.
David Levine [Mon, 9 Dec 2013 05:17:50 +0000 (23:17 -0600)]
Commit 9c663383ab54e0290781ac1c25d790ce03160e08 introduced
a backward incompatibility to build_nmh. Refuse to support
-y if the current nmh installation has an mhparam that doesn't
support the sasl and tls components.
David Levine [Sun, 8 Dec 2013 19:27:33 +0000 (13:27 -0600)]
Removed temporary diagnostic to determine gcc version on Solaris
buildbot host. It's 4.5.2. 4.6.0 and later return an error
status with an unrecognized option, which we rely on for the test
for -Qunused-arguments. 4.5.2 doesn't. But that option doesn't
produce any errors, just warnings that don't contain "warning".
So ignore it.
David Levine [Sun, 8 Dec 2013 17:19:13 +0000 (11:19 -0600)]
Added -eval 'set document.browse.margin_width = 0' to elinks
command in mhfixmsg-format-text/html in mhn.defaults, to disable
indentation of converted text. Thanks to Rickard Carlsson for
this suggestion.
David Levine [Sun, 8 Dec 2013 02:27:37 +0000 (20:27 -0600)]
Fixed test-mhfixmsg to work with elinks, which inserted leading
space on a line. Thanks to Valdis for reporting that and to
Ralph for the awk and sed magic to emulate diff -w (and cat -s).