From: Jeremy Kerr Date: Thu, 5 Dec 2013 06:54:13 +0000 (+0800) Subject: discover/boot: Copy local paths before running boot hooks X-Git-Tag: v1.0.0~290 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=6c40be15d13765c004e3568cd50b543e1fb74648;hp=6c40be15d13765c004e3568cd50b543e1fb74648;ds=sidebyside discover/boot: Copy local paths before running boot hooks We're seeing a crash when boot hooks are specifying new resources, as boot_hook_update_param will write to a NULL struct load_url_result. Instead of writing the updated values to the struct, copy the local parts of the result to a separate string, which the boot hooks are free to update. Signed-off-by: Jeremy Kerr ---