Patch reviewed and approved by Daniel Jacobowitz <drow@false.org>.