Vacation 1.2.6.3 released

This is a minor bugfix release to the 1.2.6 series of Vacation inspired by looking at the sorts of things Linux distros patch for their own usage.

Vacation no longer builds as -m486 by default, though it will build as 32-bit on AMD64/EM64T because GDBM is not 32/64-bit portable and trying to run a 64-bit version against a 32-bit created GDBM causes it to fail and syslog a success message. This is sub-optimal.

The Makefiles CFLAGS handling has been tidied up a fair bit as a consequence and will hopefully make life a little easier for distributors and it no longer tries to strip the vaclook Perl script on install, which was very silly.

Vacation also now accepts the -i option as well as -I to initialise its database.

Download from SourceForge here.

Continue reading

Vacation 1.2.7.0 beta 3 released

Another quick release, this time changing the address parsing for From: and Reply-To: headers to use Eric Raymonds rfc822.c library from his Unix Cookbook and fetchmail rather than the old homebrew code which couldn’t parse many RFC2822 addresses. You can enable the old behaviour by compiling with the -DOLD compiler option (though you probably won’t want to).

It also fixes the bug that broke the -r option, there was a stray “:” in the getopt(3) call that meant it expected an (unnecessary) argument.

There’s a couple of trivial tweaks too.

Please report successful and unsuccessful uses!

Available here.

Vacation 1.2.7.0 beta 2 released

This new beta may be more on the alpha side of beta as it includes a substantial number of changes to improve security. Rather than using the standard strcpy, strcat, etc it now uses the OpenBSD secure string handling functions strlcat and strlcpy and use of sprintf has been changed to snprintf to try and avoid possible buffer overruns. I’m not actually aware of any attacks but this is quite old code so you never know your luck.

I’ve also changed the implementation of the nsearch() function to use strcasestr() which makes it much simpler.

You can download the release from Sourceforge.

Please test and comment!

Continue reading

Intel Development Tools on Debian & Debian Derived Linux Distributions

If you have an interest in being able to run the Intel developer tools (( the C & Fortran compilers, Vtune, etc )) under Debian or a Debian derived distribution such as Ubuntu then please sign up and make your views known on the Intel instigated poll on their forums, please!

At the moment they only support RPM based distributions (mainly RHEL and SLES) and whilst you can get the compilers going through some documented hacks getting Vtune to install is a real pain – the only way I’ve heard so far is this hack that involves having a machine running one of those distros to hand.

Intel make these tools available to people doing development on projects for no recompense (but be sure to read their FAQ on who does and doesn’t qualify).

Script to Migrate Postnuke to WordPress 2

Almost a year ago now (Jan 2006) I migrated my blog from PostNuke to WordPress and to do that I used a hacked version of Bryan’s PHP migration script (which I found here thanks to Rich Boakes), but I never got around to publishing my changes. 🙁

Changes applied:

  • Migrate PostNuke topics to WordPress categories
  • Update comment counts in the WordPress database
  • Update category counts in the WordPress database

Just had an email from someone asking about it, so I’ve decided to publish it now, so here is my hacked version of a Postnuke to WordPress Migration PHP Script.

It assumes a blank WordPress 2 install, and I last used it with WordPress 2.0.0 so caveat emptor!

Licensed under the GPLv2 (or later), as per the original.

ZFS Disk Mirroring, Striping and RAID-Z

This is the third in a series of tests (( the previous ones are ZFS on Linux Works! and ZFS versus XFS with Bonnie++ patched to use random data )), but this time we’re going to test out how it handles multiple drives natively, rather than running over an existing software RAID+LVM setup. ZFS has the ability to dynamically add disks to a pool for striping (the default) mirroring or RAID-Z (with single or double parity) which are designed to improve speed (with striping), reliability (with mirroring) and performance and reliability (with RAID-Z).

Continue reading

ZFS versus XFS with Bonnie++ patched to use random data

I’ve patched Bonnie++ (( it’s not ready for production use as it isn’t controlled by a command line switch and relies on /dev/urandom existing )) to use a block of data from /dev/urandom instead of all 0’s for its block write tests. The intention is to see how the file systems react to less predictable data and to remove the unfair advantage that ZFS has with compression (( yes, I’m going to send the patch to Russell to look at )).

Continue reading