From xdivac02@stud.fit.vutbr.cz  Sun May  1 08:04:32 2005
Return-Path: <xdivac02@stud.fit.vutbr.cz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 193F516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  1 May 2005 08:04:32 +0000 (GMT)
Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A384643D46
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  1 May 2005 08:04:30 +0000 (GMT)
	(envelope-from xdivac02@stud.fit.vutbr.cz)
Received: from eva.fit.vutbr.cz (localhost [127.0.0.1])
	by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.4/8.13.3) with ESMTP id j4184RHL033505
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 1 May 2005 10:04:27 +0200 (CEST)
Received: (from xdivac02@localhost)
	by eva.fit.vutbr.cz (8.13.4/8.13.3/Submit) id j4184RDm033504;
	Sun, 1 May 2005 10:04:27 +0200 (CEST)
Message-Id: <200505010804.j4184RDm033504@eva.fit.vutbr.cz>
Date: Sun, 1 May 2005 10:04:27 +0200 (CEST)
From: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Reply-To: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: making brandelf more inteligent
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80499
>Category:       bin
>Synopsis:       making brandelf more inteligent
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 01 08:10:02 GMT 2005
>Closed-Date:    Mon May 02 17:19:48 GMT 2005
>Last-Modified:  Mon May 02 17:19:48 GMT 2005
>Originator:     Divacky Roman
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
FreeBSD witten 6.0-CURRENT FreeBSD 6.0-CURRENT #307: Wed Apr 27 17:30:33 CEST
2005     root@witten:/usr/obj/usr/src/sys/NEOLOGISM  i386


	
>Description:

Brandelf is a bit braindead cause it doesnt accept brandelf -t linux etc.
because it compares the string case sensitively.. I think this is a nonsense
and should be done case insensitively.

>How-To-Repeat:
apply the patch
>Fix:

? brandelf.patch
Index: brandelf.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/brandelf/brandelf.c,v
retrieving revision 1.23
diff -u -r1.23 brandelf.c
--- brandelf.c	2 Jun 2002 20:05:57 -0000	1.23
+++ brandelf.c	14 Apr 2005 15:38:07 -0000
@@ -189,7 +189,7 @@
 	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;
 }
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: green 
State-Changed-When: Mon May 2 17:17:13 GMT 2005 
State-Changed-Why:  
Makes sense -- committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80499 
>Unformatted:
