chiark / gitweb /
misc
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.

14 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.

14 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.

14 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.

14 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.

14 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.

20 years agoLots of stuff. 1.1.0
mdw [Thu, 9 Oct 2003 15:05:34 +0000 (15:05 +0000)]
Lots of stuff.

20 years agoRobustify.
mdw [Sat, 4 Oct 2003 20:47:36 +0000 (20:47 +0000)]
Robustify.

20 years agoCollection of miscellaneous ill-documented tools. 1.0
mdw [Wed, 1 Oct 2003 00:08:57 +0000 (00:08 +0000)]
Collection of miscellaneous ill-documented tools.