Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in pax-utils: scanelf.c
Date: Tue, 30 Dec 2008 13:38:42
Message-Id: E1LHenr-0002QG-Mo@stork.gentoo.org
1 vapier 08/12/30 13:38:35
2
3 Modified: scanelf.c
4 Log:
5 use __PAX_UTILS_PATH_MAX, not BUFSIZ, when dealing with paths
6
7 Revision Changes Path
8 1.207 pax-utils/scanelf.c
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanelf.c?rev=1.207&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanelf.c?rev=1.207&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanelf.c?r1=1.206&r2=1.207
13
14 Index: scanelf.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v
17 retrieving revision 1.206
18 retrieving revision 1.207
19 diff -u -r1.206 -r1.207
20 --- scanelf.c 30 Dec 2008 13:34:46 -0000 1.206
21 +++ scanelf.c 30 Dec 2008 13:38:35 -0000 1.207
22 @@ -1,13 +1,13 @@
23 /*
24 * Copyright 2003-2007 Gentoo Foundation
25 * Distributed under the terms of the GNU General Public License v2
26 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.206 2008/12/30 13:34:46 vapier Exp $
27 + * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.207 2008/12/30 13:38:35 vapier Exp $
28 *
29 * Copyright 2003-2007 Ned Ludd - <solar@g.o>
30 * Copyright 2004-2007 Mike Frysinger - <vapier@g.o>
31 */
32
33 -static const char *rcsid = "$Id: scanelf.c,v 1.206 2008/12/30 13:34:46 vapier Exp $";
34 +static const char *rcsid = "$Id: scanelf.c,v 1.207 2008/12/30 13:38:35 vapier Exp $";
35 const char * const argv0 = "scanelf";
36
37 #include "paxinc.h"
38 @@ -81,7 +81,7 @@
39 /* find the path to a file by name */
40 static char *which(const char *fname)
41 {
42 - static char fullpath[BUFSIZ];
43 + static char fullpath[__PAX_UTILS_PATH_MAX];
44 char *path, *p;
45
46 path = getenv("PATH");