hack(6): fix very old mis-merge by restoring code from OpenBSD