Blame SOURCES/ltrace-0.7.2-e_machine.patch

92319b
diff -up ltrace-0.7.2/proc.c\~ ltrace-0.7.2/proc.c
92319b
--- ltrace-0.7.2/proc.c~	2014-02-13 12:16:33.000000000 +0100
92319b
+++ ltrace-0.7.2/proc.c	2014-02-13 15:44:25.000000000 +0100
92319b
@@ -194,9 +197,11 @@ process_init(struct process *proc, const
92319b
 		goto fail;
92319b
 	}
92319b
 
92319b
-	if (proc->leader != proc)
92319b
-		return 0;
92319b
-	if (process_init_main(proc) < 0) {
92319b
+	if (proc->leader != proc) {
92319b
+		proc->e_machine = proc->leader->e_machine;
92319b
+		proc->e_class = proc->leader->e_class;
92319b
+		get_arch_dep(proc);
92319b
+	} else if (process_init_main(proc) < 0) {
92319b
 		process_bare_destroy(proc, 0);
92319b
 		goto fail;
92319b
 	}
92319b
92319b
Diff finished.  Thu Feb 13 15:50:21 2014