This should work with a well built version of perl that has correctly generated Errno information. This reverts commit 62340178.