From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0C64A138AE9 for ; Wed, 27 Dec 2017 09:05:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A6E2E0BEF; Wed, 27 Dec 2017 09:05:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DA162E0BEF for ; Wed, 27 Dec 2017 09:05:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8609733D4A6 for ; Wed, 27 Dec 2017 09:05:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D4277AEF1 for ; Wed, 27 Dec 2017 09:05:07 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1514365486.e30f557eb73bff37366a44ebbbf4efdc0c616c58.grobian@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-devel/binutils-config/files/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: sys-devel/binutils-config/files/ldwrapper.c X-VCS-Directories: sys-devel/binutils-config/files/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: e30f557eb73bff37366a44ebbbf4efdc0c616c58 X-VCS-Branch: master Date: Wed, 27 Dec 2017 09:05:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2aea18f9-440f-4750-b5b9-93a17336d52d X-Archives-Hash: d73bdc4e1f425ddd4d639ab62d283da3 commit: e30f557eb73bff37366a44ebbbf4efdc0c616c58 Author: Fabian Groffen gentoo org> AuthorDate: Wed Dec 27 09:04:46 2017 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Wed Dec 27 09:04:46 2017 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e30f557e sys-devel/binutils-config: fix path unraveling, thanks Michael Weiser, bug #583202 Bug: https://bugs.gentoo.org/583202 Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6 sys-devel/binutils-config/files/ldwrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-devel/binutils-config/files/ldwrapper.c b/sys-devel/binutils-config/files/ldwrapper.c index f1d5bef7d4..a8f140be27 100644 --- a/sys-devel/binutils-config/files/ldwrapper.c +++ b/sys-devel/binutils-config/files/ldwrapper.c @@ -228,7 +228,7 @@ main(int argc, char *argv[]) /* see to case 2 first */ *p = '\0'; - if ((q = strrchr(p - 1, '/')) != NULL) { + if ((q = strrchr(wrapper, '/')) != NULL) { /* q points to "/" now */ len = strlen("/gcc"); if (q - len > wrapper && strncmp(q - len, "/gcc", len) == 0)