runtime: Use bwrap->envp to run readlink
Previously, pv_capture_output() always inherited pressure-vessel-wrap's own environment, and bwrap->envp was ignored. Thanks to @mawww on Github for spotting this. Fixes: f584a55c "runtime: Don't assume container's env is in the PATH" Signed-off-by:Simon McVittie <smcv@collabora.com>
Showing
- pressure-vessel/runtime.c 3 additions, 2 deletionspressure-vessel/runtime.c
- pressure-vessel/utils.c 2 additions, 1 deletionpressure-vessel/utils.c
- pressure-vessel/utils.h 1 addition, 0 deletionspressure-vessel/utils.h
- tests/pressure-vessel/utils.c 32 additions, 5 deletionstests/pressure-vessel/utils.c
Loading
Please register or sign in to comment