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)
