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