/[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.193 Revision 1.194
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.193 2008/09/29 06:03:26 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.194 2008/09/29 06:05:55 vapier 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
10static const char *rcsid = "$Id: scanelf.c,v 1.193 2008/09/29 06:03:26 vapier Exp $"; 10static const char *rcsid = "$Id: scanelf.c,v 1.194 2008/09/29 06:05:55 vapier Exp $";
11const char * const argv0 = "scanelf"; 11const char * const 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 == '+')
1904 1904
1905 /* construct our default format */ 1905 /* construct our default format */
1906 } else { 1906 } else {
1907 size_t fmt_len = 30; 1907 size_t fmt_len = 30;
1908 out_format = xmalloc(sizeof(char) * fmt_len); 1908 out_format = xmalloc(sizeof(char) * fmt_len);
1909 *out_format = '\0';
1909 if (!be_quiet) xstrcat(&out_format, "%o ", &fmt_len); 1910 if (!be_quiet) xstrcat(&out_format, "%o ", &fmt_len);
1910 if (show_pax) xstrcat(&out_format, "%x ", &fmt_len); 1911 if (show_pax) xstrcat(&out_format, "%x ", &fmt_len);
1911 if (show_perms) xstrcat(&out_format, "%O ", &fmt_len); 1912 if (show_perms) xstrcat(&out_format, "%O ", &fmt_len);
1912 if (show_size) xstrcat(&out_format, "%Z ", &fmt_len); 1913 if (show_size) xstrcat(&out_format, "%Z ", &fmt_len);
1913 if (show_endian) xstrcat(&out_format, "%D ", &fmt_len); 1914 if (show_endian) xstrcat(&out_format, "%D ", &fmt_len);

Legend:
Removed from v.1.193  
changed lines
  Added in v.1.194

  ViewVC Help
Powered by ViewVC 1.1.20