mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
FreeBSD's unlink ignores the file's own permission bits, so it succeeds on a file the guest made read-only with chmod(0400). On Windows the guest chmod sets the read-only attribute and _wunlink then failed with EACCES, which sceKernelUnlink and unlink reported. When the path is a regular file without write permission, make it writable before the single _wunlink and restore the read-only attribute if the unlink fails, as remove() does since #2342. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>