Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gcompat gcompat
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Adélie LinuxAdélie Linux
  • gcompatgcompat
  • Merge requests
  • !24

fix path-searching for execvp

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged B K requested to merge bkurtz/gcompat:fix-execvp into current Oct 09, 2022
  • Overview 3
  • Commits 1
  • Changes 1

The POSIX definition (e.g. here) for execvp says:

If the path argument does not contain a slash, the directories specified by the PATH environment variable are searched in an attempt to locate the file.

The current implementation of execvp in gcompat makes no attempt to search the PATH and instead just executes the argument directly.

The proposed fix uses custom code in the specific case that gcompat is trying to patch and otherwise shells out to the existing execvp.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-execvp