1 |
grobian 08/09/08 10:16:31 |
2 |
|
3 |
Modified: scanmacho.c |
4 |
Log: |
5 |
Include arch by default, since it is important when displaying fat files |
6 |
|
7 |
Revision Changes Path |
8 |
1.3 pax-utils/scanmacho.c |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanmacho.c?rev=1.3&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanmacho.c?rev=1.3&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanmacho.c?r1=1.2&r2=1.3 |
13 |
|
14 |
Index: scanmacho.c |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-projects/pax-utils/scanmacho.c,v |
17 |
retrieving revision 1.2 |
18 |
retrieving revision 1.3 |
19 |
diff -u -r1.2 -r1.3 |
20 |
--- scanmacho.c 8 Sep 2008 08:01:35 -0000 1.2 |
21 |
+++ scanmacho.c 8 Sep 2008 10:16:31 -0000 1.3 |
22 |
@@ -1,7 +1,7 @@ |
23 |
/* |
24 |
* Copyright 2008 Gentoo Foundation |
25 |
* Distributed under the terms of the GNU General Public License v2 |
26 |
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanmacho.c,v 1.2 2008/09/08 08:01:35 grobian Exp $ |
27 |
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanmacho.c,v 1.3 2008/09/08 10:16:31 grobian Exp $ |
28 |
* |
29 |
* based on scanelf by: |
30 |
* Copyright 2003-2007 Ned Ludd - <solar@g.o> |
31 |
@@ -10,7 +10,7 @@ |
32 |
* 2008 Fabian Groffen - <grobian@g.o> |
33 |
*/ |
34 |
|
35 |
-static const char *rcsid = "$Id: scanmacho.c,v 1.2 2008/09/08 08:01:35 grobian Exp $"; |
36 |
+static const char *rcsid = "$Id: scanmacho.c,v 1.3 2008/09/08 10:16:31 grobian Exp $"; |
37 |
const char * const argv0 = "scanmacho"; |
38 |
|
39 |
#include "paxinc.h" |
40 |
@@ -730,6 +730,7 @@ |
41 |
size_t fmt_len = 30; |
42 |
out_format = xmalloc(sizeof(char) * fmt_len); |
43 |
*out_format = '\0'; |
44 |
+ if (!be_quiet) xstrcat(&out_format, "%a ", &fmt_len); |
45 |
if (!be_quiet) xstrcat(&out_format, "%o ", &fmt_len); |
46 |
if (show_perms) xstrcat(&out_format, "%O ", &fmt_len); |
47 |
if (show_size) xstrcat(&out_format, "%Z ", &fmt_len); |