qiling icon indicating copy to clipboard operation
qiling copied to clipboard

POSIX: unlink() returns EPERM (-1) on failure.

Open iMoD1998 opened this issue 1 year ago • 0 comments
trafficstars

*Describe the bug Similar to #1442, unlink returns EPERM on failure resulting in some implementations of tar (specifically in busybox) to fail extracting. This likely due to tar trying to remove old files before extracting and if this fails it assumes directory isn't writable due to EPERM.

Expected behavior Unlink should return proper error code such as ENOENT when a directory doesnt exist etc.

iMoD1998 avatar Apr 10 '24 08:04 iMoD1998