gspawn: Add GSpawnFlag to use the PATH from envp
authorChristian Persch <chpe@gnome.org>
Sat, 19 May 2012 22:01:35 +0000 (00:01 +0200)
committerChristian Persch <chpe@gnome.org>
Tue, 22 May 2012 17:47:28 +0000 (19:47 +0200)
commit481191f118a8f8e6505917a985e531137796d8ac
tree562668658bdf5706c3bc9ebdd37ebf7ca7bcedd2
parent6969b63827a302604a0566c8889feed33a25d842
gspawn: Add GSpawnFlag to use the PATH from envp

Add a G_SPAWN_SEARCH_PATH_FROM_ENVP flag to GSpawnFlags so that
g_spawn_async() etc use the PATH variable from the passed-in child
environment to search for the executable.
If both this flag and the G_SPAWN_SEARCH_PATH flag are set, the
child environment is searched first and only falls back to the
PATH from the process environment if it is unset.

Bug #676398.
glib/gspawn.c
glib/gspawn.h