System path used in source
Open
Nobody has claimed this yet.
Player Experience
Portability
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 536
- Avg merge
- 6d 1h
- Merged PRs (30d)
- 3
Description
/xray-16/src/xrCore/xrCore.cpp:245:
if(-1 == res || !S_ISLNK(statbuf.st_mode))
symlink("/usr/share/openxray/fsgame.ltx", tmp);
- An ordinary user is not allowed to create links along this path:
/usr/share/ - The file
fsgame.ltxmay be on a different path
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect xrCore/xrCore.cpp around line 245 and trace how the fsgame.ltx path is determined. Reproduce the symlink setup as an ordinary user and with the file outside /usr/share. Done means the path is not hard-coded to an unwritable system directory and the file can be found at its actual location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100