Blame SOURCES/ltrace-0.7.2-e_machine.patch

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