Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in pax-utils: paxmacho.c scanmacho.c
Date: Fri, 12 Sep 2008 19:59:33
Message-Id: E1KeEnf-00041R-3W@stork.gentoo.org
1 grobian 08/09/12 19:59:27
2
3 Modified: paxmacho.c scanmacho.c
4 Log:
5 Properly terminate the list of archs of a fat file
6
7 Revision Changes Path
8 1.8 pax-utils/paxmacho.c
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/paxmacho.c?rev=1.8&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/paxmacho.c?rev=1.8&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/paxmacho.c?r1=1.7&r2=1.8
13
14 Index: paxmacho.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v
17 retrieving revision 1.7
18 retrieving revision 1.8
19 diff -u -r1.7 -r1.8
20 --- paxmacho.c 8 Sep 2008 07:02:56 -0000 1.7
21 +++ paxmacho.c 12 Sep 2008 19:59:26 -0000 1.8
22 @@ -1,7 +1,7 @@
23 /*
24 * Copyright 2003-2008 Gentoo Foundation
25 * Distributed under the terms of the GNU General Public License v2
26 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v 1.7 2008/09/08 07:02:56 grobian Exp $
27 + * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v 1.8 2008/09/12 19:59:26 grobian Exp $
28 *
29 * Copyright 2005-2007 Ned Ludd - <solar@g.o>
30 * Copyright 2005-2007 Mike Frysinger - <vapier@g.o>
31 @@ -307,6 +307,8 @@
32 fobj->filename = ret->filename;
33 fobj->base_filename = ret->base_filename;
34 fobj->len = ret->len;
35 + } else {
36 + fobj->next = NULL;
37 }
38 dptr += sizeof(struct fat_arch);
39 }
40
41
42
43 1.4 pax-utils/scanmacho.c
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanmacho.c?rev=1.4&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanmacho.c?rev=1.4&content-type=text/plain
47 diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/scanmacho.c?r1=1.3&r2=1.4
48
49 Index: scanmacho.c
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-projects/pax-utils/scanmacho.c,v
52 retrieving revision 1.3
53 retrieving revision 1.4
54 diff -u -r1.3 -r1.4
55 --- scanmacho.c 8 Sep 2008 10:16:31 -0000 1.3
56 +++ scanmacho.c 12 Sep 2008 19:59:26 -0000 1.4
57 @@ -1,7 +1,7 @@
58 /*
59 * Copyright 2008 Gentoo Foundation
60 * Distributed under the terms of the GNU General Public License v2
61 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanmacho.c,v 1.3 2008/09/08 10:16:31 grobian Exp $
62 + * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanmacho.c,v 1.4 2008/09/12 19:59:26 grobian Exp $
63 *
64 * based on scanelf by:
65 * Copyright 2003-2007 Ned Ludd - <solar@g.o>
66 @@ -10,7 +10,7 @@
67 * 2008 Fabian Groffen - <grobian@g.o>
68 */
69
70 -static const char *rcsid = "$Id: scanmacho.c,v 1.3 2008/09/08 10:16:31 grobian Exp $";
71 +static const char *rcsid = "$Id: scanmacho.c,v 1.4 2008/09/12 19:59:26 grobian Exp $";
72 const char * const argv0 = "scanmacho";
73
74 #include "paxinc.h"
75 @@ -447,7 +447,7 @@
76 return 0;
77 }
78
79 -/* scan a directory for ET_EXEC files and print when we find one */
80 +/* scan a directory for Mach-O files and print when we find one */
81 static int scanmacho_dir(const char *path)
82 {
83 register DIR *dir;