Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
R re6stnet
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • re6stnet
  • Merge requests
  • !55

Open
Created Jun 25, 2025 by Louis Thevenet@louis.thevenet
  • Report abuse
Report abuse

fix: propagate PATH to ovpn in plib

  • Overview 0
  • Commits 2
  • Changes 2

OpenVPN does not inherit its parent process' environment variables by default, but we still want to propagate $PATH when invoking it. This is fixed by using --setenv PATH <path>

Additionally, Some systems such as NixOS don't store any binary in /bin, /sbin, /usr/bin or /usr/sbin so setting the PATH variable in ovpn-client.py breaks the script.

Edited Jun 30, 2025 by Louis Thevenet
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: openvpn-dropped-path
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7