sha1_file.c: resolve confusion EACCES vs EPERM