summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorddomingo <ddomingo@redhat.com>2008-09-03 09:44:45 +1000
committerddomingo <ddomingo@redhat.com>2008-09-03 09:44:45 +1000
commit404939a6c4f982062116f05aa22f7dff0b0ce24e (patch)
tree53015ff483f6ed2d1e9cdabc9289358ade12a0e3 /main.cxx
parentaac23edfa124a016581871770af84d10efc38239 (diff)
parentf02dd36464a34542d5f853d8643cc473af59c5b2 (diff)
downloadsystemtap-steved-404939a6c4f982062116f05aa22f7dff0b0ce24e.tar.gz
systemtap-steved-404939a6c4f982062116f05aa22f7dff0b0ce24e.tar.xz
systemtap-steved-404939a6c4f982062116f05aa22f7dff0b0ce24e.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx25
1 files changed, 6 insertions, 19 deletions
diff --git a/main.cxx b/main.cxx
index 51252e61..11244d8d 100644
--- a/main.cxx
+++ b/main.cxx
@@ -709,25 +709,11 @@ main (int argc, char * const argv [])
int rc = 0;
- // override PATH and LC_ALL
- const char *path = "/bin:/sbin:/usr/bin:/usr/sbin";
- rc = setenv("PATH", path, 1) || setenv("LC_ALL", "C", 1);
- if (rc)
- {
- const char* e = strerror (errno);
- cerr << "setenv (\"PATH=" << path << "\" + \"LC_ALL=C\"): "
- << e << endl;
- }
-
- // Get rid of a few standard environment variables (which might
- // cause us to do unintended things).
- rc = unsetenv("IFS") || unsetenv("CDPATH") || unsetenv("ENV")
- || unsetenv("BASH_ENV");
- if (rc)
- {
- const char* e = strerror (errno);
- cerr << "unsetenv failed: " << e << endl;
- }
+ // For PR1477, we used to override $PATH and $LC_ALL and other stuff
+ // here. We seem to use complete pathnames in
+ // buildrun.cxx/tapsets.cxx now, so this is not necessary. Further,
+ // it interferes with util.cxx:find_executable(), used for $PATH
+ // resolution.
s.kernel_base_release.assign(s.kernel_release, 0, s.kernel_release.find('-'));
@@ -1006,6 +992,7 @@ main (int argc, char * const argv [])
if (rc || s.last_pass == 3 || pending_interrupts) goto cleanup;
// PASS 4: COMPILATION
+
times (& tms_before);
gettimeofday (&tv_before, NULL);
rc = compile_pass (s);