/[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.121 Revision 1.122
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/Attic/scanelf.c,v 1.121 2006/02/05 17:10:52 solar Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/Attic/scanelf.c,v 1.122 2006/02/11 04:11:44 vapier 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
12static const char *rcsid = "$Id: scanelf.c,v 1.121 2006/02/05 17:10:52 solar Exp $"; 12static const char *rcsid = "$Id: scanelf.c,v 1.122 2006/02/11 04:11:44 vapier Exp $";
13#define argv0 "scanelf" 13#define argv0 "scanelf"
14 14
15#define IS_MODIFIER(c) (c == '%' || c == '#') 15#define IS_MODIFIER(c) (c == '%' || c == '#')
16 16
17 17
936 /* dump all the good stuff */ 936 /* dump all the good stuff */
937 for (i = 0; out_format[i]; ++i) { 937 for (i = 0; out_format[i]; ++i) {
938 const char *out; 938 const char *out;
939 const char *tmp; 939 const char *tmp;
940 940
941 /* make sure we trim leading spaces in quiet mode */
942 if (be_quiet && *out_buffer == ' ' && !out_buffer[1])
943 *out_buffer = '\0';
944
945 if (!IS_MODIFIER(out_format[i])) { 941 if (!IS_MODIFIER(out_format[i])) {
946 xchrcat(&out_buffer, out_format[i], &out_len); 942 xchrcat(&out_buffer, out_format[i], &out_len);
947 continue; 943 continue;
948 } 944 }
949 945
1424 if (out_format) warn("You prob don't want to specify -F twice"); 1420 if (out_format) warn("You prob don't want to specify -F twice");
1425 out_format = optarg; 1421 out_format = optarg;
1426 break; 1422 break;
1427 } 1423 }
1428 1424
1429 case 'g': gmatch = 1; /* break; any reason we dont breal; here ? */ 1425 case 'g': gmatch = 1; break;
1430 case 'L': use_ldcache = 1; break; 1426 case 'L': use_ldcache = 1; break;
1431 case 'y': scan_symlink = 0; break; 1427 case 'y': scan_symlink = 0; break;
1432 case 'A': scan_archives = 1; break; 1428 case 'A': scan_archives = 1; break;
1433 case 'B': show_banner = 0; break; 1429 case 'B': show_banner = 0; break;
1434 case 'l': scan_ldpath = 1; break; 1430 case 'l': scan_ldpath = 1; break;

Legend:
Removed from v.1.121  
changed lines
  Added in v.1.122

  ViewVC Help
Powered by ViewVC 1.1.20