qilingframework / qilingframework/qiling

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

Open
#1,467 0 comments 0 reactions 1 assignee View on GitHub

@elicn is already working on this.

Since Apr 15, 2024.

Dominant language
Python
Stars
6.1k
Forks
798
Avg merge
1d 1h
Merged PRs (30d)
9

Description

*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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.