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

Diff of /pax-utils/scanmacho.c

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

Revision 1.2 Revision 1.3
1/* 1/*
2 * Copyright 2008 Gentoo Foundation 2 * Copyright 2008 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/scanmacho.c,v 1.2 2008/09/08 08:01:35 grobian Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/Attic/scanmacho.c,v 1.3 2008/09/08 10:16:31 grobian Exp $
5 * 5 *
6 * based on scanelf by: 6 * based on scanelf by:
7 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org> 7 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org>
8 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org> 8 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org>
9 * for Darwin specific fun: 9 * for Darwin specific fun:
10 * 2008 Fabian Groffen - <grobian@gentoo.org> 10 * 2008 Fabian Groffen - <grobian@gentoo.org>
11 */ 11 */
12 12
13static const char *rcsid = "$Id: scanmacho.c,v 1.2 2008/09/08 08:01:35 grobian Exp $"; 13static const char *rcsid = "$Id: scanmacho.c,v 1.3 2008/09/08 10:16:31 grobian Exp $";
14const char * const argv0 = "scanmacho"; 14const char * const argv0 = "scanmacho";
15 15
16#include "paxinc.h" 16#include "paxinc.h"
17 17
18#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') 18#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+')
728 /* construct our default format */ 728 /* construct our default format */
729 } else { 729 } else {
730 size_t fmt_len = 30; 730 size_t fmt_len = 30;
731 out_format = xmalloc(sizeof(char) * fmt_len); 731 out_format = xmalloc(sizeof(char) * fmt_len);
732 *out_format = '\0'; 732 *out_format = '\0';
733 if (!be_quiet) xstrcat(&out_format, "%a ", &fmt_len);
733 if (!be_quiet) xstrcat(&out_format, "%o ", &fmt_len); 734 if (!be_quiet) xstrcat(&out_format, "%o ", &fmt_len);
734 if (show_perms) xstrcat(&out_format, "%O ", &fmt_len); 735 if (show_perms) xstrcat(&out_format, "%O ", &fmt_len);
735 if (show_size) xstrcat(&out_format, "%Z ", &fmt_len); 736 if (show_size) xstrcat(&out_format, "%Z ", &fmt_len);
736 if (show_endian) xstrcat(&out_format, "%D ", &fmt_len); 737 if (show_endian) xstrcat(&out_format, "%D ", &fmt_len);
737 if (show_needed) xstrcat(&out_format, "%n ", &fmt_len); 738 if (show_needed) xstrcat(&out_format, "%n ", &fmt_len);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20