/[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.181 Revision 1.182
1/* 1/*
2 * Copyright 2003-2007 Gentoo Foundation 2 * Copyright 2003-2007 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.181 2007/06/29 17:09:12 solar Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.182 2007/06/29 18:48:47 solar Exp $
5 * 5 *
6 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org> 6 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org>
7 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org> 7 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org>
8 */ 8 */
9 9
10#include "paxinc.h" 10#include "paxinc.h"
11 11
12static const char *rcsid = "$Id: scanelf.c,v 1.181 2007/06/29 17:09:12 solar Exp $"; 12static const char *rcsid = "$Id: scanelf.c,v 1.182 2007/06/29 18:48:47 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/* prototypes */ 17/* prototypes */
1723 case 'E': 1723 case 'E':
1724 strncpy(match_etypes, optarg, sizeof(match_etypes)); 1724 strncpy(match_etypes, optarg, sizeof(match_etypes));
1725 break; 1725 break;
1726 case 'M': 1726 case 'M':
1727 match_bits = atoi(optarg); 1727 match_bits = atoi(optarg);
1728 if (match_bits == 0) {
1729 if (strcmp(optarg, "ELFCLASS32") == 0)
1730 match_bits = 32;
1731 if (strcmp(optarg, "ELFCLASS64") == 0)
1732 match_bits = 64;
1733 }
1728 break; 1734 break;
1729 case 'O': 1735 case 'O':
1730 if (sscanf(optarg, "%o", &match_perms) == (-1)) 1736 if (sscanf(optarg, "%o", &match_perms) == (-1))
1731 match_bits = 0; 1737 match_bits = 0;
1732 break; 1738 break;

Legend:
Removed from v.1.181  
changed lines
  Added in v.1.182

  ViewVC Help
Powered by ViewVC 1.1.20