exec_cmd.c: replace hard-coded path list with one from <paths.h>
commitcb6a22c0760f30ff8050b508b9fabbe13ffba1ae
authorChris Webb <chris@arachsys.com>
Tue, 13 Apr 2010 09:07:13 +0000 (13 10:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Apr 2010 19:07:51 +0000 (15 12:07 -0700)
tree2a95e24b0a003dde2de39cbf70fcb22a1b4a9395
parentadda3c3beb0a244719becb1895e16227b0393bd1
exec_cmd.c: replace hard-coded path list with one from <paths.h>

The default executable path list used by exec_cmd.c is hard-coded to
be "/usr/local/bin:/usr/bin:/bin".  Use an appropriate value for the
system from <paths.h> when available.

Add HAVE_PATHS_H make variables and enable it on Linux, FreeBSD,
NetBSD, OpenBSD and GNU where it is known to exist for now. Somebody
else may want to do an autoconf support later.

Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
exec_cmd.c
git-compat-util.h