Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • R re6stnet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • re6stnet
  • Merge requests
  • !55

Merged
Created Jun 25, 2025 by Louis Thevenet@louis.thevenetDeveloper

fix: propagate PATH to ovpn in plib

  • Overview 0
  • Commits 1
  • 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
Time tracking
Source branch: openvpn-dropped-path
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7