public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-devel/binutils-config/files/
Date: Wed, 27 Dec 2017 09:05:07 +0000 (UTC)	[thread overview]
Message-ID: <1514365486.e30f557eb73bff37366a44ebbbf4efdc0c616c58.grobian@gentoo> (raw)

commit:     e30f557eb73bff37366a44ebbbf4efdc0c616c58
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 27 09:04:46 2017 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> 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 "/<CTARGET>" now */
 			len = strlen("/gcc");
 			if (q - len > wrapper && strncmp(q - len, "/gcc", len) == 0)


             reply	other threads:[~2017-12-27  9:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-27  9:05 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-13 14:29 [gentoo-commits] repo/proj/prefix:master commit in: sys-devel/binutils-config/files/ Fabian Groffen
2023-09-26 19:38 Fabian Groffen
2020-11-27 13:57 Fabian Groffen
2020-11-27 13:39 Fabian Groffen
2018-01-31  9:50 Fabian Groffen
2017-12-29 14:56 Fabian Groffen
2017-12-25 19:47 Fabian Groffen
2017-11-29 15:21 Fabian Groffen
2017-11-25 18:33 Fabian Groffen
2016-05-15 16:44 Fabian Groffen
2016-05-13 12:14 Fabian Groffen
2016-05-13 12:14 Fabian Groffen
2016-05-13 12:14 Fabian Groffen
2016-04-18  8:07 Michael Haubenwallner
2016-02-15 14:30 Fabian Groffen
2016-02-14 14:56 Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1514365486.e30f557eb73bff37366a44ebbbf4efdc0c616c58.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox