From: "Mike Frysinger (vapier)" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-projects commit in pax-utils: paxelf.c
Date: Sat, 24 Nov 2012 19:32:09 +0000 (UTC) [thread overview]
Message-ID: <20121124193209.D3D9B20C65@flycatcher.gentoo.org> (raw)
vapier 12/11/24 19:32:09
Modified: paxelf.c
Log:
scanelf: skip leading OLFOSABI_ when getting the osabi field so we do not skip UNKNOWN_TYPE
Revision Changes Path
1.75 pax-utils/paxelf.c
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/paxelf.c?rev=1.75&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/paxelf.c?rev=1.75&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/paxelf.c?r1=1.74&r2=1.75
Index: paxelf.c
===================================================================
RCS file: /var/cvsroot/gentoo-projects/pax-utils/paxelf.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- paxelf.c 18 Nov 2012 07:39:45 -0000 1.74
+++ paxelf.c 24 Nov 2012 19:32:09 -0000 1.75
@@ -1,7 +1,7 @@
/*
* Copyright 2003-2012 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxelf.c,v 1.74 2012/11/18 07:39:45 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxelf.c,v 1.75 2012/11/24 19:32:09 vapier Exp $
*
* Copyright 2005-2012 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2012 Mike Frysinger - <vapier@gentoo.org>
@@ -150,10 +150,9 @@
const char *get_elfosabi(elfobj *elf)
{
const char *str = get_elfeitype(EI_OSABI, elf->data[EI_OSABI]);
- if (str)
- if (strlen(str) > 9)
- return str + 9;
- return "";
+ if (strncmp(str, "ELFOSABI_", 9) == 0)
+ str += 9;
+ return str;
}
void print_etypes(FILE *stream)
next reply other threads:[~2012-11-24 19:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-24 19:32 Mike Frysinger (vapier) [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-01-11 0:57 [gentoo-commits] gentoo-projects commit in pax-utils: paxelf.c Mike Frysinger (vapier)
2014-01-11 0:35 Mike Frysinger (vapier)
2012-11-24 19:53 Mike Frysinger (vapier)
2012-11-24 19:52 Mike Frysinger (vapier)
2012-04-29 6:24 Mike Frysinger (vapier)
2009-12-01 6:03 Mike Frysinger (vapier)
2009-12-01 5:52 Mike Frysinger (vapier)
2008-12-30 12:59 Mike Frysinger (vapier)
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=20121124193209.D3D9B20C65@flycatcher.gentoo.org \
--to=vapier@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