X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=exec_cmd.c;h=bf225706ee377b89035eb21f76f9957cfaf6363b;hb=48c250a121a425a1860226b6a7061aecfbab5246;hp=408e4e55e1c58931444c772d35d23b505bf3e2ea;hpb=c512b035556eff4d8f869afeda5fd78bc7a4966d;p=git.git diff --git a/exec_cmd.c b/exec_cmd.c index 408e4e55e..bf225706e 100644 --- a/exec_cmd.c +++ b/exec_cmd.c @@ -28,7 +28,7 @@ const char *system_path(const char *path) !(prefix = strip_path_suffix(argv0_path, BINDIR)) && !(prefix = strip_path_suffix(argv0_path, "git"))) { prefix = PREFIX; - fprintf(stderr, "RUNTIME_PREFIX requested, " + trace_printf("RUNTIME_PREFIX requested, " "but prefix computation failed. " "Using static fallback '%s'.\n", prefix); } @@ -107,7 +107,7 @@ void setup_path(void) if (old_path) strbuf_addstr(&new_path, old_path); else - strbuf_addstr(&new_path, "/usr/local/bin:/usr/bin:/bin"); + strbuf_addstr(&new_path, _PATH_DEFPATH); setenv("PATH", new_path.buf, 1);