From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18937 invoked by alias); 21 Dec 2018 08:10:19 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 18884 invoked by uid 89); 21 Dec 2018 08:10:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=systemtap, 997, H*Ad:D*cn, H*F:D*cn X-HELO: m97179.mail.qiye.163.com Received: from m97179.mail.qiye.163.com (HELO m97179.mail.qiye.163.com) (220.181.97.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Dec 2018 08:10:14 +0000 Received: from opengrok.localdomain (unknown [120.132.1.243]) by m97179.mail.qiye.163.com (Hmail) with ESMTPA id C9EF3E015CD; Fri, 21 Dec 2018 16:10:08 +0800 (CST) From: "faicker.mo" To: systemtap@sourceware.org Cc: "faicker.mo" Subject: [PATCH] buildrun: no sanitize $PATH for kbuild invocation Date: Fri, 21 Dec 2018 08:10:00 -0000 Message-Id: <1545379729-30048-1-git-send-email-faicker.mo@ucloud.cn> X-HM-Spam-Status: e1kIGBQJHllBS1VLV1koWUFJQjdXWS1ZQUlXWQkOFx4IWUFZMjUtOjcyP0 FLVUtZBg++ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Pxw6Vio4MzlRLz4aTBUVMEMS KhgaFDVVSlVKTk9OSExCQ0tCS0JLVTMWGhIXVR0aEhgQHglVFhQ7DhgXFA4fVRgVRVlXWRILWUFZ SklLVUpISVVKVUlPSFlXWQgBWUFKSE5LNwY+ X-HM-Tid: 0a67cfd0869420bdkuqyc9ef3e015cd X-IsSubscribed: yes X-SW-Source: 2018-q4/txt/msg00135.txt.bz2 From: "faicker.mo" 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 --- 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