Use Identical Permissions for Files in a Project When Copied and Saved

Open
#7,741 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
tooling

Research direction

Start by locating the implementations or entry points for project.create_file() and project.create_file_from_path(), then reproduce the difference in resulting file permissions. Confirm that both paths produce files with identical 0755 permissions and matching project icons.

Written by the indexing model from the issue text.

Description

Version and Platform (required):

  • Binary Ninja Version: 5.3.8724-dev Ultimate, a43c703e
  • OS: macos
  • OS Version: 26.1.0
  • CPU Architecture: arm64

Bug Description:
The execute bit is not set by project.create_file() but is set by project.create_file_from_path().

Steps To Reproduce:
Use one project method vs the other and look at the resulting icon in the project. One has a executable icon the other has a document icon.

Expected Behavior:
Both result in a file with the same permissions (0755).

Screenshots:
Top is save, bottom is copy:
Image

Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

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.

More from Vector35/binaryninja-api

All issues in Vector35/binaryninja-api

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.