add option to forward environment to pipestream
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 17 Apr 2018 09:32:20 +0000 (11:32 +0200)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 14 Aug 2018 14:53:34 +0000 (16:53 +0200)
commitcdc166d250757b40a00fbdc82a446c615c8bdd65
tree732c9b872d9c1841be29ff98a5ac943188321360
parent0c68bd0f8e649d2c77dd290b65033789271fe5d9
add option to forward environment to pipestream

Add an argument to all execve-based pipestream APIs to control
whether *environ* should be passed through to the executed
command. Till now this used to depend on whether path lookup was
requested which is rather undesirable.

Unit tests included.
src/pipestream.cpp
src/pipestream.hxx
test/test_pipestream.cpp