Added check for EPERM when checking errno after a failed link(2).
[mmh] / test / refile /
drwxr-xr-x   ..
-rwxr-xr-x 6046 test-refile