Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 452178
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +3 lines)
Line  Link Here
0
-- lddtree.py
0
++ lddtree.py
Lines 186-192 Link Here
186
	for ldpath in ldpaths:
186
	for ldpath in ldpaths:
187
		path = os.path.join(ldpath, lib)
187
		path = os.path.join(ldpath, lib)
188
		if os.path.exists(path):
188
		if os.path.exists(path):
189
			with open(path) as f:
189
			with open(path, "rb") as f:
190
				libelf = ELFFile(f)
190
				libelf = ELFFile(f)
191
				if CompatibleELFs(elf, libelf):
191
				if CompatibleELFs(elf, libelf):
192
					return path
192
					return path
Lines 231-237 Link Here
231
		'libs': _all_libs,
231
		'libs': _all_libs,
232
	}
232
	}
233
233
234
	with open(path) as f:
234
	with open(path, "rb") as f:
235
		elf = ELFFile(f)
235
		elf = ELFFile(f)
236
236
237
		# If this is the first ELF, extract the interpreter.
237
		# If this is the first ELF, extract the interpreter.

Return to bug 452178