author | Chris Webb <chris@arachsys.com> | |
Tue, 13 Apr 2010 09:07:13 +0000 (10:07 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 15 Apr 2010 19:07:51 +0000 (12:07 -0700) | ||
commit | cb6a22c0760f30ff8050b508b9fabbe13ffba1ae | |
tree | 2a95e24b0a003dde2de39cbf70fcb22a1b4a9395 | tree | snapshot |
parent | adda3c3beb0a244719becb1895e16227b0393bd1 | commit | diff |
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>
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 | diff | blob | history | |
exec_cmd.c | diff | blob | history | |
git-compat-util.h | diff | blob | history |