/[gentoo-projects]/pax-utils/scanelf.c
Gentoo

Diff of /pax-utils/scanelf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.249 Revision 1.250
1/* 1/*
2 * Copyright 2003-2012 Gentoo Foundation 2 * Copyright 2003-2012 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.249 2012/11/04 08:23:12 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.250 2012/11/04 08:25:41 vapier Exp $
5 * 5 *
6 * Copyright 2003-2012 Ned Ludd - <solar@gentoo.org> 6 * Copyright 2003-2012 Ned Ludd - <solar@gentoo.org>
7 * Copyright 2004-2012 Mike Frysinger - <vapier@gentoo.org> 7 * Copyright 2004-2012 Mike Frysinger - <vapier@gentoo.org>
8 */ 8 */
9 9
10static const char rcsid[] = "$Id: scanelf.c,v 1.249 2012/11/04 08:23:12 vapier Exp $"; 10static const char rcsid[] = "$Id: scanelf.c,v 1.250 2012/11/04 08:25:41 vapier Exp $";
11const char argv0[] = "scanelf"; 11const char argv0[] = "scanelf";
12 12
13#include "paxinc.h" 13#include "paxinc.h"
14 14
15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') 15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+')
2324 while (optind < argc) { 2324 while (optind < argc) {
2325 search_path = argv[optind++]; 2325 search_path = argv[optind++];
2326 ret = scanelf_dir(search_path); 2326 ret = scanelf_dir(search_path);
2327 } 2327 }
2328 2328
2329#ifdef __PAX_UTILS_CLEANUP
2329 /* clean up */ 2330 /* clean up */
2330 xarrayfree(ldpaths); 2331 xarrayfree(ldpaths);
2331 xarrayfree(find_sym_arr); 2332 xarrayfree(find_sym_arr);
2332 xarrayfree(find_lib_arr); 2333 xarrayfree(find_lib_arr);
2333 xarrayfree(find_section_arr); 2334 xarrayfree(find_section_arr);
2342 xarrayfree(find_sym_regex_arr); 2343 xarrayfree(find_sym_regex_arr);
2343 } 2344 }
2344 2345
2345 if (ldcache != 0) 2346 if (ldcache != 0)
2346 munmap(ldcache, ldcache_size); 2347 munmap(ldcache, ldcache_size);
2348#endif
2349
2347 return ret; 2350 return ret;
2348} 2351}
2349 2352
2350static char **get_split_env(const char *envvar) 2353static char **get_split_env(const char *envvar)
2351{ 2354{

Legend:
Removed from v.1.249  
changed lines
  Added in v.1.250

  ViewVC Help
Powered by ViewVC 1.1.20