Page MenuHomeDevCentral

Allow PATH in rc service environment
ClosedPublic

Authored by dereckson on Wed, Jun 12, 23:53.
Tags
None
Referenced Files
F3160992: D3333.id8572.diff
Wed, Jun 26, 05:40
Unknown Object (File)
Mon, Jun 24, 20:18
Unknown Object (File)
Sat, Jun 22, 17:49
Unknown Object (File)
Sat, Jun 22, 17:49
Unknown Object (File)
Sat, Jun 22, 10:54
Unknown Object (File)
Fri, Jun 21, 21:32
Unknown Object (File)
Fri, Jun 21, 19:06
Unknown Object (File)
Fri, Jun 21, 02:41
Subscribers
None

Details

Summary

FreeBSD rc service allows to use <service name>_env variable to modify
environment, and already call env for that, so there is no need
to call a second time env.

This fixes an issue where $PATH wasn't defined, and so any command not
called with absolute path failed when called from a HTTP request.

Fixes T1968.

Test Plan

Tested on Hervil, git is now found

Diff Detail

Repository
rALK Alkane
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Wed, Jun 12, 23:54
This revision was automatically updated to reflect the committed changes.