| 1 | /* |
1 | /* |
| 2 | * Copyright 2003-2006 Gentoo Foundation |
2 | * Copyright 2003-2006 Gentoo Foundation |
| 3 | * Distributed under the terms of the GNU General Public License v2 |
3 | * Distributed under the terms of the GNU General Public License v2 |
| 4 | * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.159 2006/10/29 16:20:54 vapier Exp $ |
4 | * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.160 2006/11/23 23:50:33 solar Exp $ |
| 5 | * |
5 | * |
| 6 | * Copyright 2003-2006 Ned Ludd - <solar@gentoo.org> |
6 | * Copyright 2003-2006 Ned Ludd - <solar@gentoo.org> |
| 7 | * Copyright 2004-2006 Mike Frysinger - <vapier@gentoo.org> |
7 | * Copyright 2004-2006 Mike Frysinger - <vapier@gentoo.org> |
| 8 | */ |
8 | */ |
| 9 | |
9 | |
| 10 | #include "paxinc.h" |
10 | #include "paxinc.h" |
| 11 | |
11 | |
| 12 | static const char *rcsid = "$Id: scanelf.c,v 1.159 2006/10/29 16:20:54 vapier Exp $"; |
12 | static const char *rcsid = "$Id: scanelf.c,v 1.160 2006/11/23 23:50:33 solar Exp $"; |
| 13 | #define argv0 "scanelf" |
13 | #define argv0 "scanelf" |
| 14 | |
14 | |
| 15 | #define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') |
15 | #define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') |
| 16 | |
16 | |
| 17 | #define do_state(option, flag) \ |
17 | #define do_state(option, flag) \ |
| … | |
… | |
| 1379 | return i; |
1379 | return i; |
| 1380 | } |
1380 | } |
| 1381 | } |
1381 | } |
| 1382 | globfree64 (&gl); |
1382 | globfree64 (&gl); |
| 1383 | continue; |
1383 | continue; |
| 1384 | } else |
1384 | } |
| 1385 | abort(); |
|
|
| 1386 | } |
1385 | } |
| 1387 | #endif |
1386 | #endif |
| 1388 | if (*path != '/') |
1387 | if (*path != '/') |
| 1389 | continue; |
1388 | continue; |
| 1390 | |
1389 | |