OpenXRay / OpenXRay/xray-16

System path used in source

Open
#569 7 comments 1 reaction 0 assignees View on GitHub

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);
  1. An ordinary user is not allowed to create links along this path: /usr/share/
  2. The file fsgame.ltx may be on a different path

Contributor guide

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.