From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B3BB31391DB for ; Fri, 21 Mar 2014 05:33:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DA1BE0AA5; Fri, 21 Mar 2014 05:33:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DE774E0AA5 for ; Fri, 21 Mar 2014 05:33:35 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 17B0333FCB7 for ; Fri, 21 Mar 2014 05:33:35 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id CE2722004E; Fri, 21 Mar 2014 05:33:33 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-projects commit in pax-utils: scanelf.c X-VCS-Repository: gentoo-projects X-VCS-Files: scanelf.c X-VCS-Directories: pax-utils X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20140321053333.CE2722004E@flycatcher.gentoo.org> Date: Fri, 21 Mar 2014 05:33:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4c44e5b7-fc6a-4d1d-ab5d-8253bce180f8 X-Archives-Hash: 71165cc686285d175fbf6e5d717080e5 vapier 14/03/21 05:33:33 Modified: scanelf.c Log: note that which() does not handle PATH="/foo::/bar" correctly Revision Changes Path 1.265 pax-utils/scanelf.c file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/scanelf.c?rev=1.265&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/scanelf.c?rev=1.265&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/scanelf.c?r1=1.264&r2=1.265 Index: scanelf.c =================================================================== RCS file: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v retrieving revision 1.264 retrieving revision 1.265 diff -u -r1.264 -r1.265 --- scanelf.c 21 Mar 2014 05:27:21 -0000 1.264 +++ scanelf.c 21 Mar 2014 05:33:33 -0000 1.265 @@ -1,13 +1,13 @@ /* * Copyright 2003-2012 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.264 2014/03/21 05:27:21 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.265 2014/03/21 05:33:33 vapier Exp $ * * Copyright 2003-2012 Ned Ludd - * Copyright 2004-2012 Mike Frysinger - */ -static const char rcsid[] = "$Id: scanelf.c,v 1.264 2014/03/21 05:27:21 vapier Exp $"; +static const char rcsid[] = "$Id: scanelf.c,v 1.265 2014/03/21 05:33:33 vapier Exp $"; const char argv0[] = "scanelf"; #include "paxinc.h" @@ -72,7 +72,8 @@ static const char *objdump; -/* find the path to a file by name */ +/* Find the path to a file by name. Note: we do not currently handle the + * empty path element correctly (should behave by searching $PWD). */ static const char *which(const char *fname, const char *envvar) { size_t path_len, fname_len;