summaryrefslogtreecommitdiffstats
path: root/usr.bin/brandelf
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2005-05-02 17:19:33 +0000
committergreen <green@FreeBSD.org>2005-05-02 17:19:33 +0000
commit8d250bc693370ed72d8f63b21fb928a11ea5c524 (patch)
tree776d82383c44e78da6e447e14232f1ce14d27637 /usr.bin/brandelf
parent2593dad93c3a27ef302788f5cdeb974c8d5835e3 (diff)
downloadFreeBSD-src-8d250bc693370ed72d8f63b21fb928a11ea5c524.zip
FreeBSD-src-8d250bc693370ed72d8f63b21fb928a11ea5c524.tar.gz
Make brandelf(1)'s -t "ABI format" case insensitive, as the ABI value
given is looked up in a table and no longer stored literally in the header. Submitted by: Divacky Roman <xdivac02@stud.fit.vutbr.cz PR: 80499 MFC After: 1 month
Diffstat (limited to 'usr.bin/brandelf')
-rw-r--r--usr.bin/brandelf/brandelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/brandelf/brandelf.c b/usr.bin/brandelf/brandelf.c
index 681f0a2..9ba8382 100644
--- a/usr.bin/brandelf/brandelf.c
+++ b/usr.bin/brandelf/brandelf.c
@@ -189,7 +189,7 @@ elftype(const char *elfstrtype)
for (elfwalk = 0;
elfwalk < sizeof(elftypes)/sizeof(elftypes[0]);
elfwalk++)
- if (strcmp(elfstrtype, elftypes[elfwalk].str) == 0)
+ if (strcasecmp(elfstrtype, elftypes[elfwalk].str) == 0)
return elftypes[elfwalk].value;
return -1;
}
OpenPOWER on IntegriCloud