This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH] buildrun: no sanitize $PATH for kbuild invocation
- From: "faicker.mo" <faicker dot mo at ucloud dot cn>
- To: systemtap at sourceware dot org
- Cc: "faicker.mo" <faicker dot mo at ucloud dot cn>
- Date: Fri, 21 Dec 2018 16:08:49 +0800
- Subject: [PATCH] buildrun: no sanitize $PATH for kbuild invocation
From: "faicker.mo" <faicker.mo@ucloud.cn>
For newer kernel, SCL with newer gcc and systemtap prepends
it's directory to the $PATH to take effect. It doesn't work
if $PATH is sanitized (prefixed with /usr/bin:/bin:)
Fixes e8474d2a
Signed-off-by: faicker.mo <faicker.mo@ucloud.cn>
---
buildrun.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildrun.cxx b/buildrun.cxx
index cef14ad..dcdb6e8 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -99,7 +99,7 @@ make_any_make_cmd(systemtap_session& s, const string& dir, const string& target)
const char *oldpath = getenv("PATH");
if (oldpath != NULL)
{
- newpath += ':';
+ newpath = "PATH=";
newpath += oldpath;
}
--
1.8.3.1