misc
9 years agoRelease 1.3.1. 1.3.1
Mark Wooding [Mon, 22 Dec 2014 20:32:58 +0000 (20:32 +0000)]
Release 1.3.1.

9 years agohush.in: Fix ordering of log files so we don't delete the wrong ones.
Mark Wooding [Wed, 14 Jan 2015 14:23:27 +0000 (14:23 +0000)]
hush.in: Fix ordering of log files so we don't delete the wrong ones.

The sequence numbers aren't lexicographically ordered, so call out to
sort(1) to put them in the right order.

9 years agohush.in: Use `$' prefixes on variables in arithmetic expansions.
Mark Wooding [Wed, 14 Jan 2015 14:24:47 +0000 (14:24 +0000)]
hush.in: Use `$' prefixes on variables in arithmetic expansions.

Omitting this is a Bashism, but one apparently permitted by Dash.

9 years agobuf, buf.1: Allow the temporary file's extension to be set.
Mark Wooding [Thu, 23 Oct 2014 13:02:38 +0000 (14:02 +0100)]
buf, buf.1: Allow the temporary file's extension to be set.

Some programs try to deduce things about their input files from their
names, so accommodate them.

9 years agobuf.1: Fix wrong punctuation in example.
Mark Wooding [Thu, 23 Oct 2014 13:02:06 +0000 (14:02 +0100)]
buf.1: Fix wrong punctuation in example.

9 years agobuf.1: Fix stupid speling mitsake.
Mark Wooding [Thu, 23 Oct 2014 13:01:12 +0000 (14:01 +0100)]
buf.1: Fix stupid speling mitsake.

10 years agoRelease 1.3.0. 1.3.0
Mark Wooding [Mon, 20 Jan 2014 16:08:36 +0000 (16:08 +0000)]
Release 1.3.0.

10 years agox86-model: Make it build on amd64.
Mark Wooding [Mon, 20 Jan 2014 16:03:50 +0000 (16:03 +0000)]
x86-model: Make it build on amd64.

It even seems to work.

10 years agoRemove `qmail-checkspam'.
Mark Wooding [Mon, 20 Jan 2014 15:56:21 +0000 (15:56 +0000)]
Remove `qmail-checkspam'.

It's too annoying to build and maintain.

10 years agoprlimit.c: Fix format-string type mismatch.
Mark Wooding [Sun, 19 Jan 2014 01:33:27 +0000 (01:33 +0000)]
prlimit.c: Fix format-string type mismatch.

Mismatch between `size_t' variable and `int' expected argument.
Obviously `size_t' is more sensible here...

10 years agoRelease 1.2.9.1. 1.2.9.1
Mark Wooding [Thu, 9 Jan 2014 08:53:12 +0000 (08:53 +0000)]
Release 1.2.9.1.

10 years agomtimeout.c: Fix help and usage messages.
Mark Wooding [Thu, 9 Jan 2014 08:53:12 +0000 (08:53 +0000)]
mtimeout.c: Fix help and usage messages.

It was missing several options entirely, and failed to mention that time
interval specifications could specify units.

10 years agomtimeout.c: Fix ludicrous whitespace in help message.
Mark Wooding [Thu, 9 Jan 2014 08:53:12 +0000 (08:53 +0000)]
mtimeout.c: Fix ludicrous whitespace in help message.

10 years agoRelease 1.2.9. 1.2.9
Mark Wooding [Fri, 10 Jan 2014 14:57:42 +0000 (14:57 +0000)]
Release 1.2.9.

10 years agomtimeout.c: Fix (impossible) `printf' format-string bug.
Mark Wooding [Fri, 10 Jan 2014 14:54:29 +0000 (14:54 +0000)]
mtimeout.c: Fix (impossible) `printf' format-string bug.

10 years agoMerge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/misc
Mark Wooding [Fri, 10 Jan 2014 14:46:06 +0000 (14:46 +0000)]
Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/misc

* 'master' of git.distorted.org.uk:~mdw/publish/public-git/misc:
  space.c: Fix trailing-newline misreporting in `-c' mode.
  space.[c1]: Document the `-v' option finally.

10 years agospace.c: Fix trailing-newline misreporting in `-c' mode.
Mark Wooding [Sun, 11 Aug 2013 01:08:00 +0000 (02:08 +0100)]
space.c: Fix trailing-newline misreporting in `-c' mode.

Reduction of the recent-newlines counter was being done only in the
output case.

10 years agospace.[c1]: Document the `-v' option finally.
Mark Wooding [Sun, 11 Aug 2013 01:08:00 +0000 (02:08 +0100)]
space.[c1]: Document the `-v' option finally.

10 years agohush: Don't lose backslashes in output lines. 1.2.8.3
Mark Wooding [Fri, 14 Jun 2013 11:32:24 +0000 (12:32 +0100)]
hush: Don't lose backslashes in output lines.

10 years agodebian: Dump CDBS in favour of plain Debhelper.
Mark Wooding [Fri, 14 Jun 2013 17:13:36 +0000 (18:13 +0100)]
debian: Dump CDBS in favour of plain Debhelper.

10 years agodebian/control: Fix missing shlibs dependencies.
Mark Wooding [Fri, 14 Jun 2013 17:20:55 +0000 (18:20 +0100)]
debian/control: Fix missing shlibs dependencies.

11 years agohush.in: Close extraneous file descriptors when running the command. 1.2.8.2
Mark Wooding [Sat, 1 Dec 2012 23:24:09 +0000 (23:24 +0000)]
hush.in: Close extraneous file descriptors when running the command.

Otherwise, if it forks a daemon or something then we end up hanging
until the daemon stops.

11 years agospace.c, space.1: New `-l' option to handle trailing blank lines.
Mark Wooding [Wed, 14 Nov 2012 00:56:24 +0000 (00:56 +0000)]
space.c, space.1: New `-l' option to handle trailing blank lines.

11 years agospace.c: Strip `typedef' from `buf'; now it's just a struct.
Mark Wooding [Tue, 13 Nov 2012 23:39:45 +0000 (23:39 +0000)]
space.c: Strip `typedef' from `buf'; now it's just a struct.

11 years agoRelease 1.2.8.1. 1.2.8.1
Mark Wooding [Fri, 26 Oct 2012 18:27:07 +0000 (19:27 +0100)]
Release 1.2.8.1.

11 years agoMerge branch 'master' of git.distorted.org.uk:public-git/misc
Mark Wooding [Fri, 26 Oct 2012 18:25:47 +0000 (19:25 +0100)]
Merge branch 'master' of git.distorted.org.uk:public-git/misc

* 'master' of git.distorted.org.uk:public-git/misc:
  xtitle.c: Ignore boring return codes better.
  hush.1.in: Fix some stupid (but relatively minor) formatting foulups.

11 years agoStamp out trailing whitespace.
Mark Wooding [Fri, 26 Oct 2012 18:24:31 +0000 (19:24 +0100)]
Stamp out trailing whitespace.

11 years agoRelease 1.2.8. 1.2.8
Mark Wooding [Sun, 7 Oct 2012 14:06:46 +0000 (15:06 +0100)]
Release 1.2.8.

11 years agohush.in: Don't trim leading space from lines.
Mark Wooding [Sun, 7 Oct 2012 02:27:53 +0000 (03:27 +0100)]
hush.in: Don't trim leading space from lines.

12 years agoxtitle.c: Ignore boring return codes better.
Mark Wooding [Thu, 29 Mar 2012 18:50:37 +0000 (19:50 +0100)]
xtitle.c: Ignore boring return codes better.

I'm not convinced that ignoring the write code when reading the
current title is clever, but that code is hopelessly broken anyway.

12 years agohush.1.in: Fix some stupid (but relatively minor) formatting foulups.
Mark Wooding [Thu, 29 Mar 2012 16:19:44 +0000 (17:19 +0100)]
hush.1.in: Fix some stupid (but relatively minor) formatting foulups.

12 years agoRelease 1.2.7. 1.2.7
Mark Wooding [Tue, 14 Feb 2012 10:25:41 +0000 (10:25 +0000)]
Release 1.2.7.

12 years agoqmail-checkspam.c: Add copious logging, particularly of envelopes.
Mark Wooding [Mon, 13 Feb 2012 02:03:32 +0000 (02:03 +0000)]
qmail-checkspam.c: Add copious logging, particularly of envelopes.

This is a fair-sized rewrite of the existing code.  The main point is to
log the envelope sender and recipients in order to make tracking down
incorrect rejections easier.  Logging errors information about errors is
just good practice.

12 years agohush.in: Turn off buffering in the pipe-merging `cat'.
Mark Wooding [Tue, 27 Dec 2011 17:51:28 +0000 (17:51 +0000)]
hush.in: Turn off buffering in the pipe-merging `cat'.

GNU cat never buffers anyway; BSD cat doesn't seem to unless you ask it
to do something complicated.  But it's good form.

12 years agoprlimit.c: Fix stupid typo in usage message.
Mark Wooding [Thu, 15 Dec 2011 01:14:21 +0000 (01:14 +0000)]
prlimit.c: Fix stupid typo in usage message.

I typed the wrong magic punctuation character, so the program name
didn't appear.

12 years agoprlimit.c: Fix careless use of `lt' variable.
Mark Wooding [Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)]
prlimit.c: Fix careless use of `lt' variable.

The `lt' variable is used in the second pass for actually printing
limits, but its value is simply debris from the first command-line
parsing pass and has no useful meaning.

Since it's a convenient abbreviation, initialize it properly in the
second-pass loop and use it consistently.

Spotted by GCC.

12 years agoprlimit.c: Fix up whitespace.
Mark Wooding [Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)]
prlimit.c: Fix up whitespace.

12 years agomtimeout.c: Add `--kill-after' and `--no-kill' options.
Mark Wooding [Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)]
mtimeout.c: Add `--kill-after' and `--no-kill' options.

The `--kill-after' option is from the GNU Coreutils `timeout' program,
which doesn't kill by default.  The `--no-kill' option emulates this
behaviour.

12 years agomtimeout.c: Restructure timeout handling to use explicit machine.
Mark Wooding [Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)]
mtimeout.c: Restructure timeout handling to use explicit machine.

An upcoming change makes the timeout handling rather more fiddly.
Rather than have a huge pile of code to make it all work, encode the
timeout behaviour as explicit instructions to a simple virtual machine.
The instructions are assembled using preprocessor hacking.

12 years agomtimeout.c: Accept time unit specification on timeout options.
Mark Wooding [Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)]
mtimeout.c: Accept time unit specification on timeout options.

12 years agoVersion 1.2.6. 1.2.6
Mark Wooding [Wed, 14 Dec 2011 01:58:04 +0000 (01:58 +0000)]
Version 1.2.6.

12 years agohush: New handy program.
Mark Wooding [Wed, 14 Dec 2011 01:47:10 +0000 (01:47 +0000)]
hush: New handy program.

12 years agoconfigure.ac: Fix the `--with-perlmoddir' help text.
Mark Wooding [Wed, 14 Dec 2011 01:43:53 +0000 (01:43 +0000)]
configure.ac: Fix the `--with-perlmoddir' help text.

12 years agodebian/control: Fix x86-model architecture string.
Mark Wooding [Wed, 14 Dec 2011 01:49:19 +0000 (01:49 +0000)]
debian/control: Fix x86-model architecture string.

12 years agoprlimit: New program for fiddling with resource limits.
Mark Wooding [Thu, 1 Sep 2011 11:09:52 +0000 (12:09 +0100)]
prlimit: New program for fiddling with resource limits.

12 years agodebian/control: Fix architectures for x86-model.
Mark Wooding [Thu, 1 Sep 2011 11:14:31 +0000 (12:14 +0100)]
debian/control: Fix architectures for x86-model.

12 years agomtimeout.c: Fettle the signal-table Lisp code.
Mark Wooding [Thu, 1 Sep 2011 11:08:51 +0000 (12:08 +0100)]
mtimeout.c: Fettle the signal-table Lisp code.

This is a slightly better version taken from another program (hitting
this repository soon).

12 years agox86-model.c: Actually display the stepping.
Mark Wooding [Wed, 31 Aug 2011 13:47:32 +0000 (14:47 +0100)]
x86-model.c: Actually display the stepping.

12 years agoRename `timeout' to `mtimeout' to prevent conflict with GNU Coreutils.
Mark Wooding [Wed, 31 Aug 2011 13:44:19 +0000 (14:44 +0100)]
Rename `timeout' to `mtimeout' to prevent conflict with GNU Coreutils.

The Coreutils version is broken: it places itself in a new process group
and its child inherits the new process group (though this isn't
documented anywhere).  This stops interactive signals from working
properly.

12 years agospace.1: Fix up the manpage a bit.
Mark Wooding [Mon, 15 Aug 2011 12:47:06 +0000 (13:47 +0100)]
space.1: Fix up the manpage a bit.

12 years agoMerge branch 'master' of /home/mdw/public-git/misc
Mark Wooding [Mon, 15 Aug 2011 12:44:42 +0000 (13:44 +0100)]
Merge branch 'master' of /home/mdw/public-git/misc

* 'master' of /home/mdw/public-git/misc:
  timeout.c: Fix exit codes; useful message on exec failure.

12 years agoVersion 1.2.5. 1.2.5
Mark Wooding [Tue, 7 Jun 2011 09:14:09 +0000 (10:14 +0100)]
Version 1.2.5.

12 years agotimeout.c: Fix exit codes; useful message on exec failure.
Mark Wooding [Tue, 7 Jun 2011 09:07:10 +0000 (10:07 +0100)]
timeout.c: Fix exit codes; useful message on exec failure.

12 years agotimeout.1: Include exit status documentation in the manual.
Mark Wooding [Tue, 7 Jun 2011 09:07:49 +0000 (10:07 +0100)]
timeout.1: Include exit status documentation in the manual.

12 years agotimeout: New program to limit how long a child process runs.
Mark Wooding [Sun, 5 Jun 2011 21:02:49 +0000 (22:02 +0100)]
timeout: New program to limit how long a child process runs.

It's already grown more sophisticated than I was expecting.  Oh, well.

12 years agoxtitle.c: Shut up warnings about ignoring the return from write(2).
Mark Wooding [Sun, 5 Jun 2011 21:00:39 +0000 (22:00 +0100)]
xtitle.c: Shut up warnings about ignoring the return from write(2).

I simply don't care enough.

12 years agoMakefile.am: Fix hideous formatting.
Mark Wooding [Sun, 5 Jun 2011 21:10:48 +0000 (22:10 +0100)]
Makefile.am: Fix hideous formatting.

12 years agoMakefile.am: Improve `silent-rules' output.
Mark Wooding [Sun, 5 Jun 2011 21:10:11 +0000 (22:10 +0100)]
Makefile.am: Improve `silent-rules' output.

Introduce a separate `SUBST' line type for `confsubst'.

13 years agoVersion bump to 1.2.4. 1.2.4
Mark Wooding [Mon, 31 May 2010 17:05:39 +0000 (18:05 +0100)]
Version bump to 1.2.4.

13 years agoBuild system: Use Automake's `silent-rules' feature if it's available.
Mark Wooding [Mon, 31 May 2010 17:04:22 +0000 (18:04 +0100)]
Build system: Use Automake's `silent-rules' feature if it's available.

13 years agoconfigure.ac: s/AC_\(PROG_PERL_VERSION\)/AX_\1/
Mark Wooding [Mon, 31 May 2010 17:03:54 +0000 (18:03 +0100)]
configure.ac: s/AC_\(PROG_PERL_VERSION\)/AX_\1/

The macro changed name upstream.  Try to keep up.

13 years agolocking.c: Reset alarm state before invoking the target command.
Mark Wooding [Mon, 31 May 2010 17:01:56 +0000 (18:01 +0100)]
locking.c: Reset alarm state before invoking the target command.

There's nothing worse than grabbing a lock, trying to do something, and
then being killed by an alarm clock midway through.

Well, there are probably are worse things, but this commit message
isn't the right place to list them.

13 years agoqmail-checkspam.c: Don't do anything if RELAYCLIENT is set.
Mark Wooding [Mon, 31 May 2010 17:00:28 +0000 (18:00 +0100)]
qmail-checkspam.c: Don't do anything if RELAYCLIENT is set.

This is an unpleasant hack to accept potentially malformed mail from
clients who have authenticated to the SMTP server.  I don't think it's
actually needed any more, because the specific client in question has
since been re-educated about how to construct mail properly.

15 years agoNew version 1.2.3. 1.2.3
Mark Wooding [Thu, 30 Apr 2009 23:13:41 +0000 (00:13 +0100)]
New version 1.2.3.

15 years ago.links, Makefile: Make sure we have auto-version.
Mark Wooding [Thu, 30 Apr 2009 23:11:03 +0000 (00:11 +0100)]
.links, Makefile: Make sure we have auto-version.

Stuff doesn't work well otherwise.

15 years agodebian: Add libcdb-dev to Build-Depends.
Mark Wooding [Thu, 30 Apr 2009 23:04:58 +0000 (00:04 +0100)]
debian: Add libcdb-dev to Build-Depends.

Found the hard way.

15 years agoqmail-checkspam: Include <limits.h>.
Mark Wooding [Thu, 30 Apr 2009 22:59:21 +0000 (23:59 +0100)]
qmail-checkspam: Include <limits.h>.

Previously missing.

15 years agox86-model: New program, prints CPUID information.
Mark Wooding [Thu, 30 Apr 2009 22:56:57 +0000 (23:56 +0100)]
x86-model: New program, prints CPUID information.

15 years agoinplace: Substitute the @BASH@ onion in the shebang line. 1.2.2
Mark Wooding [Sun, 25 Jan 2009 13:06:03 +0000 (13:06 +0000)]
inplace: Substitute the @BASH@ onion in the shebang line.

Somehow, BASH got left off the confsubst list of onions to substitute.

15 years agocdb-*: Fixing for Python 2.5. 1.2.1
Mark Wooding [Sun, 4 May 2008 13:03:48 +0000 (14:03 +0100)]
cdb-*: Fixing for Python 2.5.

The new Python warns about the old `sre' module being deprecated.
Unfortunately, the scripts get used in cron files, and the warnings are
very annoying, so fix this.

Also put Emacs mode markers in.

16 years agoRelease 1.2.0. 1.2.0
Mark Wooding [Tue, 1 Apr 2008 18:19:00 +0000 (19:19 +0100)]
Release 1.2.0.

16 years agospace: Fix --check.
Mark Wooding [Tue, 1 Apr 2008 18:18:36 +0000 (19:18 +0100)]
space: Fix --check.

The logic for when --check should report strangeness was confused with
the verbosity stuff.  Disentangle and fix.

16 years agoDelete crufty old .cvsignore files.
Mark Wooding [Tue, 1 Apr 2008 18:06:34 +0000 (19:06 +0100)]
Delete crufty old .cvsignore files.

And ignore autom4te.cache while we're there.

16 years agoMakefile.am: Oops, distribute important things.
Mark Wooding [Tue, 1 Apr 2008 18:06:23 +0000 (19:06 +0100)]
Makefile.am: Oops, distribute important things.

Like the Debian stuff and the RELEASE file.

16 years agoAdd getpass to the fun
Mark Wooding [Tue, 1 Apr 2008 17:57:09 +0000 (18:57 +0100)]
Add getpass to the fun

16 years agoBuild system overhaul.
Mark Wooding [Tue, 1 Apr 2008 17:51:12 +0000 (18:51 +0100)]
Build system overhaul.

Give up and use autotools and CDBS.

17 years agocleanup: Fix extraneous whitespace throughout.
Mark Wooding [Sun, 28 Jan 2007 14:35:00 +0000 (14:35 +0000)]
cleanup: Fix extraneous whitespace throughout.

17 years agospace: New program for fixing whitespace problems in text files.
Mark Wooding [Sun, 28 Jan 2007 11:14:43 +0000 (11:14 +0000)]
space: New program for fixing whitespace problems in text files.

17 years agostamp: New program.
Mark Wooding [Fri, 11 Aug 2006 13:07:13 +0000 (14:07 +0100)]
stamp: New program.

Like cat, but prints datestamps on input lines.

18 years agomanpages: Fix author email address; also, fix synopsis for inplace.
Mark Wooding [Thu, 2 Mar 2006 10:42:02 +0000 (10:42 +0000)]
manpages: Fix author email address; also, fix synopsis for inplace.

18 years agocdb: Remove dependency on freecdb and libfile-cdb-perl.
Mark Wooding [Thu, 2 Mar 2006 01:49:57 +0000 (01:49 +0000)]
cdb: Remove dependency on freecdb and libfile-cdb-perl.

The C utilities are now built against tinycdb.  The Perl utilities have
been rewritten in Python and use python-cdb.

18 years agoqmail-checkspam: Provide argv[0] when execing qmail-queue.
Mark Wooding [Thu, 2 Mar 2006 01:48:11 +0000 (01:48 +0000)]
qmail-checkspam: Provide argv[0] when execing qmail-queue.

18 years agolocking: Fix uninitialized variable.
Mark Wooding [Thu, 2 Mar 2006 01:47:24 +0000 (01:47 +0000)]
locking: Fix uninitialized variable.

Could cause bizarre effects with SIGALRM.

18 years agodebian: Fix package sections.
Mark Wooding [Wed, 15 Feb 2006 12:30:11 +0000 (12:30 +0000)]
debian: Fix package sections.

18 years agocdb-assign.1: Fix formatting.
Mark Wooding [Mon, 6 Feb 2006 18:30:32 +0000 (18:30 +0000)]
cdb-assign.1: Fix formatting.

18 years agoExtract Subversion ignore data.
Mark Wooding [Mon, 6 Feb 2006 18:30:00 +0000 (18:30 +0000)]
Extract Subversion ignore data.

18 years agocdb-map: New program to construct CDB files.
mdw [Mon, 6 Feb 2006 18:28:12 +0000 (18:28 +0000)]
cdb-map: New program to construct CDB files.

18 years agodebian: Fix maintainer address.
mdw [Mon, 6 Feb 2006 18:27:25 +0000 (18:27 +0000)]
debian: Fix maintainer address.

19 years agoBodge for strange bug (`bizarre copy of ARRAY in anonlist') in Perl
mdw [Sun, 3 Apr 2005 18:04:20 +0000 (18:04 +0000)]
Bodge for strange bug (`bizarre copy of ARRAY in anonlist') in Perl
5.8.4.

19 years agoVarious fixes.
mdw [Sat, 5 Feb 2005 10:40:12 +0000 (10:40 +0000)]
Various fixes.

19 years agoNew scripts.
mdw [Sat, 5 Feb 2005 10:33:00 +0000 (10:33 +0000)]
New scripts.

19 years agoAdd `pause' program. 1.1.1
mdw [Sat, 11 Sep 2004 17:20:44 +0000 (17:20 +0000)]
Add `pause' program.

20 years agoExpunge revision histories in files.
mdw [Thu, 8 Apr 2004 01:36:29 +0000 (01:36 +0000)]
Expunge revision histories in files.

20 years agoMake gorp better. Deb fixes.
mdw [Sat, 29 Nov 2003 23:45:44 +0000 (23:45 +0000)]
Make gorp better.  Deb fixes.

20 years agoFix uninstall target.
mdw [Thu, 13 Nov 2003 11:49:32 +0000 (11:49 +0000)]
Fix uninstall target.

20 years agoDebianization.
mdw [Thu, 13 Nov 2003 11:47:18 +0000 (11:47 +0000)]
Debianization.

20 years agoBring `z' into the fold.
mdw [Wed, 22 Oct 2003 18:23:46 +0000 (18:23 +0000)]
Bring `z' into the fold.

20 years agoBuild fixes.
mdw [Sun, 12 Oct 2003 01:21:35 +0000 (01:21 +0000)]
Build fixes.

20 years agoAdd shadowfix to the collection.
mdw [Sat, 11 Oct 2003 18:18:54 +0000 (18:18 +0000)]
Add shadowfix to the collection.

20 years agoMissed a paren. Un-`toys'-ify.
mdw [Thu, 9 Oct 2003 15:15:42 +0000 (15:15 +0000)]
Missed a paren.  Un-`toys'-ify.